Prometheus histogram aggregation of haproxy logs
654
This package exports haproxy statistics as histrgrams for prometheus.
It is complementary to haproxy_exporter. It does extract the haproxy log sent to the embedded syslog daemon, analyzes them and makes the histograms available through HTTP.
See the our wiki for more info.
About 5000 requests / second depending on your setup. Beyond this rate syslog packets are dropped.
To run the prometheus client libraries for python are required:
pip install prometheus_client
... or without pip
git clone https://github.com/prometheus/client_python.git && ln -s client_python/prometheus_client/ .
and then run with
./main.py
To build the haproxy histogram exporter as a Docker container, run:
docker build -t baloise/haproxy-histogram-exporter:latest .
To run the haproxy histogram exporter as a Docker container, run:
docker run -p 8080:80 -p 8514:514/udp baloise/haproxy-histogram-exporter
To test the docker image you may adjust and then run:
./test.py
... and then lookup the generated metrics to see the histograms buckets
Content type
Image
Digest
Size
22.1 MB
Last updated
over 10 years ago
docker pull baloise/haproxy_histogram_exporter