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

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

Open
carrouet opened this issue Aug 23, 2024 · 0 comments
Open

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

carrouet opened this issue Aug 23, 2024 · 0 comments

Comments

@carrouet
Copy link

carrouet commented 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 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,

@carrouet carrouet changed the title Front / Back Up count Front / Back Up count (HAProxy 2 Full) Aug 23, 2024
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

1 participant