Skip to content

Prometheus

Prometheus is the default, zero-dependency way to consume Klag metrics.

Terminal window
docker run -e KAFKA_BOOTSTRAP_SERVERS=kafka:9092 \
-e METRICS_REPORTER=prometheus \
-p 8888:8888 \
themoah/klag:latest

Metrics are then served at http://localhost:8888/metrics in Prometheus text format.

scrape_configs:
- job_name: klag
metrics_path: /metrics
static_configs:
- targets: ['klag:8888']

On Kubernetes, the Helm chart can render a ServiceMonitor for the Prometheus Operator. See the chart’s values.yaml.

All metrics are exposed with consumer_group, topic, and partition labels where applicable. Import the Grafana dashboard for ready-made panels.