Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Add idle metric #236

Merged
merged 2 commits into from
Feb 14, 2023
Merged

Conversation

colakong
Copy link
Contributor

@colakong colakong commented Feb 9, 2022

HAProxy docs mention that the Idle_pct metric indicates how busy the event loop is; The closer to zero the value, the closer HAProxy is to its processing capacity.

This seems like a useful metric for capacity planning, so this PR is to include it metrics when scraping HAProxy via unix sockets.

…t value

Signed-off-by: Cedric Nelson <cedric@lemony.ca>
Signed-off-by: Cedric Nelson <cedric@lemony.ca>
@matthiasr
Copy link
Contributor

Thank you!

@matthiasr matthiasr merged commit 4b99f0f into prometheus:main Feb 14, 2023
matthiasr added a commit that referenced this pull request Feb 14, 2023
The official HAProxy exporter plugin uses
`haproxy_process_idle_time_percent`, let's be consistent with that.

Follow-up for #236.

Signed-off-by: Matthias Rampke <matthias@prometheus.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants