Sign inSign up

baloise/haproxy_histogram_exporter

By baloise

•Updated about 8 years ago

Prometheus histogram aggregation of haproxy logs

Image
0

654

baloise/haproxy_histogram_exporter repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

22.1 MB

Last updated

over 10 years ago

docker pull baloise/haproxy_histogram_exporter