Exports HAProxy frontend/backend/server metrics from stats endpoint
Part of the Exporter Hub — a collection of 50 production-grade Prometheus exporters.
docker run -d \
-p 9116:9116 \
lknappich/exporterhub-haproxy-stats-exporter:latest
Exports HAProxy frontend/backend/server metrics from stats endpoint.
| Metric | Type | Labels | Description |
|---|---|---|---|
| haproxy-stats-exporter_scrape_duration_seconds | histogram | - | Duration of each scrape cycle |
| haproxy-stats-exporter_scrape_success | gauge | - | Whether the last scrape succeeded (1=ok, 0=fail) |
| haproxy-stats-exporter_scrape_errors_total | counter | error_type | Total number of scrape errors by type |
| haproxy-stats-exporter_build_info | gauge | version, commit, goversion, builddate | Build metadata |
| Environment variable | Default | Description |
|---|---|---|
| EXPORTER_PORT | 9116 | HTTP listen port |
| EXPORTER_LOG_LEVEL | info | Log verbosity: debug/info/warn/error |
| SCRAPE_INTERVAL | 15s | How often to collect metrics |
| SCRAPE_TIMEOUT | 10s | Per-scrape timeout |
| TLS_CERT_FILE | — | Path to TLS cert (enables HTTPS) |
| TLS_KEY_FILE | — | Path to TLS key (enables HTTPS) |
| Endpoint | Description |
|---|---|
| /metrics | Prometheus text format metrics |
| /healthz | Health check (200 if last scrape < 60s ago) |
| /readyz | Readiness check (200 after first successful scrape) |
| /version | JSON with version, commit, buildDate |
scrape_configs:
- job_name: 'haproxy-stats-exporter'
static_configs:
- targets: ['localhost:9116']
scrape_interval: 15s
linux/amd64, linux/arm64
Content type
Image
Digest
sha256:81d80b42c…
Size
4.3 MB
Last updated
6 months ago
docker pull lknappich/exporterhub-haproxy-stats-exporter