rfmoz / grafana-dashboards

Grafana dashboards
Apache License 2.0
1.13k stars 440 forks source link

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

Closed szook closed 3 years ago

szook commented 3 years ago

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 commented 3 years ago

You are right, thanks for it Szook.