rfmoz / grafana-dashboards

Grafana dashboards
Apache License 2.0
1.21k stars 446 forks source link

Front / Back Up count (HAProxy 2 Full) #171

Open carrouet opened 3 months ago

carrouet commented 3 months ago

Hello,

I fail to understand the query used to count frontend or backend which are up in "Basic General Status" graph of "HAProxy 2 Full" dashboard. For "Front Up", it is count(haproxy_frontend_status{instance="$host"} == 1).

But this does not check the state which can be UP or DOWN. So count(haproxy_frontend_status{instance="$host", state="DOWN"} == 1) will count as "Front Up", which IMHO does not make sense (or am I missing something ?)

Should it not be changed to count(haproxy_frontend_status{instance="$host", state="UP"} == 1) ? Or maybe count(haproxy_frontend_status{instance="$host"} == 1) by (state) and then change associated legend to Front {{state}}

NB: tested with haproxy 2.6.16

Regards,