Exports GitLab CI/CD pipeline status and duration metrics
Part of the Exporter Hub — a collection of 50 production-grade Prometheus exporters.
docker run -d \
-p 9141:9141 \
lknappich/exporterhub-gitlab-pipeline-exporter:latest
Exports GitLab CI/CD pipeline status and duration metrics.
| Metric | Type | Labels | Description |
|---|---|---|---|
| gitlab-pipeline-exporter_scrape_duration_seconds | histogram | - | Duration of each scrape cycle |
| gitlab-pipeline-exporter_scrape_success | gauge | - | Whether the last scrape succeeded (1=ok, 0=fail) |
| gitlab-pipeline-exporter_scrape_errors_total | counter | error_type | Total number of scrape errors by type |
| gitlab-pipeline-exporter_build_info | gauge | version, commit, goversion, builddate | Build metadata |
| Environment variable | Default | Description |
|---|---|---|
| EXPORTER_PORT | 9141 | 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: 'gitlab-pipeline-exporter'
static_configs:
- targets: ['localhost:9141']
scrape_interval: 15s
linux/amd64, linux/arm64
Content type
Image
Digest
sha256:0b5e3df6f…
Size
4.4 MB
Last updated
6 months ago
docker pull lknappich/exporterhub-gitlab-pipeline-exporter