Reference

prometheus-haproxy-exporter(1)

Prometheus exporter for HAProxy

NAME

prometheus-haproxy-exporter - Prometheus exporter for HAProxy

SYNOPSIS

prometheus-haproxy-exporter [<flags>]

DESCRIPTION

OPTIONS

-h, --help

Show context-sensitive help (also try --help-long and --help-man).

--web.systemd-socket

Use systemd socket activation listeners instead of port listeners (Linux only).

--web.listen-address=:9101

Addresses on which to expose metrics and web interface. Repeatable for multiple addresses. Examples: `:9100` or `[::1]:9100` for http, `vsock://:9100` for vsock

--web.config.file

Path to configuration file that can enable TLS or authentication. See: https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md

--web.telemetry-path

Path under which to expose metrics.

--haproxy.scrape-uri

URI on which to scrape HAProxy.

--haproxy.ssl-verify

Flag that enables SSL certificate verification for the scrape URI

--haproxy.server-metric-fields

Comma-separated list of exported server metrics. See http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9.1

--haproxy.server-exclude-states

Comma-separated list of exported server states to exclude. See https://cbonte.github.io/haproxy-dconv/1.8/management.html#9.1, field 17 statuus

--haproxy.timeout=5s

Timeout for trying to get stats from HAProxy.

--haproxy.pid-file

Path to HAProxy pid file.

If provided, the standard process metrics get exported for the HAProxy
process, prefixed with 'haproxy_process_...'. The haproxy_process exporter
needs to have read access to files owned by the HAProxy process. Depends on
the availability of /proc.

https://prometheus.io/docs/instrumenting/writing_clientlibs/#process-metrics.

--http.proxy-from-env

Flag that enables using HTTP proxy settings from environment variables ($http_proxy, $https_proxy, $no_proxy)

--log.level=info

Only log messages with the given severity or above. One of: [debug, info, warn, error]

--log.format=logfmt

Output format of log messages. One of: [logfmt, json]

--version

Show application version.

History

--haproxy.server-exclude-states since Debian 11 (Bullseye); --http.proxy-from-env since Debian 12 (Bookworm); --web.config.file since Debian 12 (Bookworm); --web.systemd-socket since Debian 12 (Bookworm).