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}}
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 beUP
orDOWN
. Socount(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 maybecount(haproxy_frontend_status{instance="$host"} == 1) by (state)
and then change associated legend toFront {{state}}
NB: tested with haproxy 2.6.16
Regards,