Prometheus
Prometheus is the default, zero-dependency way to consume Klag metrics.
Enable
Section titled “Enable”docker run -e KAFKA_BOOTSTRAP_SERVERS=kafka:9092 \ -e METRICS_REPORTER=prometheus \ -p 8888:8888 \ themoah/klag:latestMetrics are then served at http://localhost:8888/metrics in Prometheus text format.
Scrape config
Section titled “Scrape config”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.
What you get
Section titled “What you get”All metrics are exposed with consumer_group, topic, and
partition labels where applicable. Import the
Grafana dashboard for ready-made panels.