You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
The text was updated successfully, but these errors were encountered:
carrouet
changed the title
Front / Back Up count
Front / Back Up count (HAProxy 2 Full)
Aug 23, 2024
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 maybe
count(haproxy_frontend_status{instance="$host"} == 1) by (state)
and then change associated legend toFront {{state}}
NB: tested with haproxy 2.6.16
Regards,
The text was updated successfully, but these errors were encountered: