Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
idanam-del opened this issue Aug 9, 2023 · 4 comments

Comments

@idanam-del
Copy link

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
Copy link
Author

My setup is this:

  • physical server with deb 11
  • Installed homer using the install script
  • heplify-server version 1.59.4
  • Promtheus docker on localhost

Examples of values diffrence:
Screenshot_1

@lmangani
Copy link
Member

lmangani commented Aug 9, 2023

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.

@lmangani lmangani transferred this issue from sipcapture/heplify-server Aug 9, 2023
@idanam-del
Copy link
Author

@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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants