Skip to content

Grafana Dashboard

Klag ships a comprehensive, pre-built Grafana dashboard at dashboard/demo-dashboard.json.

Klag Grafana dashboard

  1. In Grafana, go to Dashboards → Import.
  2. Upload dashboard/demo-dashboard.json.
  3. Select your OTLP/Prometheus-compatible data source.
  4. Adjust the refresh interval and time range as needed.
  • Consumer Lag Overview: real-time lag by group with color-coded thresholds.
  • Lag Velocity Tracking: is lag growing or shrinking over time.
  • Consumer Group Health: state table with alerts for unhealthy states.
  • Partition & Offset Details: topic throughput and per-partition lag.
  • Hot Partition Detection: count, table, and time series.
  • Time-Based Lag: max time lag, groups catching up, time-to-close charts.
  • Data Loss Prevention: retention-risk and at-risk topics panels.
  • JVM panels: memory, GC pause, threads, CPU, allocation rate, loaded classes.
  • Template variables: filter by consumer group and topic; auto-refresh every minute.
  • Klag running with METRICS_REPORTER=otlp (or prometheus).
  • Metrics flowing to Grafana Cloud or a Prometheus-compatible backend.
  • A data source configured in Grafana with PromQL support.