Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 903 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 903 Bytes

HAProxy stick table exporter

This is a prometheus exporter for HAProxy stick table. Exporter will provide stick table metrics provided by echo "show table" | socat stdio /tmp/sock1 and cho "show table tablename" | socat stdio /tmp/sock1. Futher details provided by HAProxy docs.

Install

$ pip3 install -r requirements.txt

Running

$ python3 HAProxy-stick-tables-exporter.py -m 9366

Flags

Name Description Default
-m --metrics-port The port that the metrics exporter will listen on 9366

Stats socket

This exporter expects to find HAProxy config file under /etc/haproxy/haproxy.cfg, and finds the socket in the config file. The user running the exporter needs permissions rw on this socket.