haproxy_exporter icon indicating copy to clipboard operation
haproxy_exporter copied to clipboard

only one pid's metrics return by exporter

Open broom2015qq opened this issue 3 years ago • 5 comments

my haproxy has 8pids,for example pid=100 sessions=512; pid=106 sessions=701
then I find exporter/metrics only display 512 acutally it should 512+701

broom2015qq avatar Feb 02 '21 10:02 broom2015qq

Yes, the current PID collection method doesn't know about the worker PIDs, only the main PID.

SuperQ avatar Feb 02 '21 11:02 SuperQ

Yes, the current PID collection method doesn't know about the worker PIDs, only the main PID.

in this case ,how to aggregate all pid's data in one haproxy-exporter

broom2015qq avatar Feb 03 '21 01:02 broom2015qq

What version of haproxy?

SuperQ avatar Feb 03 '21 07:02 SuperQ

What version of haproxy?

haproxy -v

HA-Proxy version 2.0.3 2019/07/23 - https://haproxy.org/

more informations when I refresh this page ,Statistics Report for pid 102/66/100.... shows up in turns
image haproxy-exporter configs: haproxy_exporter --haproxy.scrape-uri='http://marathon-lb-grafana.sae-skyark.dcos.2i.unicom.local:9090/haproxy?stats;csv
haproxy_exporter may collect data from different pid

broom2015qq avatar Feb 03 '21 08:02 broom2015qq

haproxy 2.0 doesn't need the haproxy_exporter, it supports Prometheus directly.

https://www.haproxy.com/blog/haproxy-exposes-a-prometheus-metrics-endpoint/

https://github.com/prometheus/haproxy_exporter#official-prometheus-exporter

SuperQ avatar Feb 03 '21 08:02 SuperQ

Closing this as we won't fix it in this exporter anymore. Please use the official plugin!

matthiasr avatar Feb 14 '23 18:02 matthiasr