HAProxy exporter
HAProxy, a well-known load balancing solution, at the time of writing does not expose Prometheus metrics natively. Fortunately, it has an exporter, made by the Prometheus maintainers, to ensure its metrics can be collected, which is the haproxy_exporter. HAProxy natively exposes its metrics in comma-separated value (CSV) format via a configurable HTTP endpoint by using the stats enable configuration. The haproxy_exporter, which runs as a separate daemon, is able to connect to the HAProxy stats endpoint, consume the CSV, and convert its contents to the Prometheus metric format, exposing it in a synchronous manner when triggered by a scrape.
Instrumenting the load-balancer layer can be quite useful when the applications in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access