]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CONTRIB: contrib/prometheus-exporter: Add a Prometheus exporter for HAProxy
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 Feb 2019 14:38:42 +0000 (15:38 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 8 Feb 2019 12:55:21 +0000 (13:55 +0100)
commitf959d0809ead017555ef5db60ef081a7fd87ca20
treecf10833e81ee65bb9bba702f830964b08a1b86f5
parent1417f0b5dc7291c2feefd8f8d265fdc318d277a0
CONTRIB: contrib/prometheus-exporter: Add a Prometheus exporter for HAProxy

It has been developped as a service applet. Internally, it is called
"promex". To build HAProxy with the promex service, you should use the Makefile
variable "EXTRA_OBJS". To be used, it must be enabled in the configuration with
an "http-request" rule and the corresponding HTTP proxy must enable the HTX
support. For instance:

    frontend test
        mode http
        ...
option http-use-htx
http-request use-service prometheus-exporter if { path /metrics }
        ...

See contrib/prometheus-exporter/README for details.
contrib/prometheus-exporter/README [new file with mode: 0644]
contrib/prometheus-exporter/service-prometheus.c [new file with mode: 0644]