haproxy_exporter
haproxy_exporter copied to clipboard
Config for status checks
Is it possible to have the status checks for server state be definable in a config? Currently it's hard-coded to limit your health checks to the default fall 3 rise 2, however in many cases you want to be able to adjust that along with the interval.
For example, I may want to have fall 6 rise 1 with an interval of 10s, if I do that, during any transition state, the value of the haproxy_server_up in prom is 0 when it should be either 1 for up transitioning down or 0 for down transitioning up.
If I understand you correctly this should be fixed by #101
I believe so, is that just matching the status so if it contains string "UP", "DOWN" etc rather than strict comparison?
Yes essentially. The status is normalised by removing the second part ("1/3" etc) before being parsed to 1 or 0.
Ya then #101 would resolve this. Any idea when that will get merged into master and make it to the docker image?
Unfortunately I can't answer that. That's a question for @grobie
Hi, I am closing this issue because we are retiring this exporter. We will not be implementing new features anymore.
Please use the Prometheus support in HAProxy directly. It may already support this; if not, please open an issue against the HAProxy repository.