Public | Automated Build

Last pushed: a year ago
Short Description
Prometheus histogram aggregation of haproxy logs
Full Description

HAProxy Histogram Exporter for Prometheus

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.

Performance

About 5000 requests / second depending on your setup. Beyond this rate syslog packets are dropped.

Run locally

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

Docker

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

Test

To test the docker image you may adjust and then run:

./test.py

... and then lookup the generated metrics to see the histograms buckets

Docker Pull Command
Owner
baloise

Comments (0)