sipcapture / homer

HOMER - 100% Open-Source SIP, VoIP, RTC Packet Capture & Monitoring
https://sipcapture.org
GNU Affero General Public License v3.0
1.58k stars 239 forks source link

Promtheus - Query values change after defining PromTargetName & PromTargetIP #605

Open idanam-del opened 11 months ago

idanam-del commented 11 months ago

Hey, before adding PromTargetName to the helify-server config file - I query the Promtheus for the REGISTER rate of my nodes by this:

max by(node_id) (rate(heplify_method_response{target_name=~"", method="REGISTER", response="REGISTER"}[1m]))

After i add PromTargetName & PromTargetIP parameters in cfg file and restart the heplify-server service (killall -HUP heplify-server doesnt seem to work) - i understand i need to query like this so ill get the same rate of my nodes:

max by(node_id) (rate(heplify_method_response{target_name=~"unknown", method="REGISTER", response="REGISTER"}[1m]))

But this doenst bring the same data that was before as it should becuase basically no parameter was changed.

Is this supposed to do that? How do i know which one brings the correct rate? Why is it even affected?

idanam-del commented 11 months ago

My setup is this:

Examples of values diffrence: Screenshot_1

lmangani commented 11 months ago

Hello @idanam-del You can refer to the query examples included in our sample dashboards

As of the target_name application, it greatly depends on your setup so it's hard to comment on the results.

idanam-del commented 11 months ago

@lmangani

The queries i listed are from the sample dashboards.

im asking why the results are different when i add PromTargetName & PromTargetIP but the queries are the same?

I dont understand how its greatly depends on my setup.

i plan to use PromTargetName & PromTargetIP for specific traffic i'm interested of and not for my hep generating nodes but with this unexplained change of results from the basically same queries after using this parameters i can't do what i plan without thinking something is broken when it shouldn't.

lmangani commented 11 months ago

im asking why the results are different when i add PromTargetName & PromTargetIP but the queries are the same?

If you want help understanding you will have to provide full information w/o assumptions or censoring data. Query + Results, Expected Results, etc.

I dont understand how its greatly depends on my setup.

You have the traffic needed to validate, and you know how it looks. To everyone else this is just theory and hard to guess.