haproxy_exporter
haproxy_exporter copied to clipboard
only one pid's metrics return by exporter
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
Yes, the current PID collection method doesn't know about the worker PIDs, only the main PID.
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
What version of haproxy?
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
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
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
Closing this as we won't fix it in this exporter anymore. Please use the official plugin!