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

[haproxy] Active Sessions panel should not be using rate() #83

Closed
szook opened this issue Jul 1, 2021 · 1 comment
Closed

[haproxy] Active Sessions panel should not be using rate() #83

szook opened this issue Jul 1, 2021 · 1 comment

Comments

@szook
Copy link

szook commented Jul 1, 2021

in the haproxy-2-full.json file on the "Active Sessions" panel, the haproxy_frontend_current_sessions and haproxy_backend_current_sessions metrics are "gauge" metrics rather than "counter", so applying the rate() function obfuscates the data.

I suggest changing these to something like:

sum(haproxy_frontend_current_sessions{proxy=~"$frontend",instance="$host"}) by (instance)
@rfrail3 rfrail3 closed this as completed in 7d61c79 Jul 7, 2021
@rfrail3
Copy link
Collaborator

rfrail3 commented Jul 7, 2021

You are right, thanks for it Szook.

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

No branches or pull requests

2 participants