---
name: "prometheus-haproxy-exporter"
section: "1"
platform: "linux"
package: "prometheus-haproxy-exporter"
version: "0.15.0-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/prometheus-haproxy-exporter"
---

# 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.
