haproxy_exporter icon indicating copy to clipboard operation
haproxy_exporter copied to clipboard

Config for status checks

Open Shadow00Caster opened this issue 6 years ago • 5 comments

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.

image

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.

Shadow00Caster avatar Jun 21 '18 00:06 Shadow00Caster

If I understand you correctly this should be fixed by #101

Tom-Fawcett avatar Jun 22 '18 08:06 Tom-Fawcett

I believe so, is that just matching the status so if it contains string "UP", "DOWN" etc rather than strict comparison?

Shadow00Caster avatar Jun 26 '18 02:06 Shadow00Caster

Yes essentially. The status is normalised by removing the second part ("1/3" etc) before being parsed to 1 or 0.

Tom-Fawcett avatar Jun 26 '18 05:06 Tom-Fawcett

Ya then #101 would resolve this. Any idea when that will get merged into master and make it to the docker image?

Shadow00Caster avatar Jun 26 '18 05:06 Shadow00Caster

Unfortunately I can't answer that. That's a question for @grobie

Tom-Fawcett avatar Jun 26 '18 05:06 Tom-Fawcett

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.

matthiasr avatar Feb 15 '23 10:02 matthiasr