# Klag — configuration

> Klag is an open-source Kafka consumer lag exporter built with Vert.x and Micrometer. It monitors consumer lag, lag velocity, hot partitions, time-based lag, data-loss risk, and consumer-group state, and exports to Prometheus, Datadog, or OTLP (OpenTelemetry). It also exposes an opt-in read-only MCP endpoint for AI agents. The docs include comparisons with other Kafka tools (Burrow, KMinion, AKHQ, Confluent Control Center, Redpanda Console, Grafana, Cruise Control) and guides on how Kafka consumer lag works, common monitoring mistakes, and detecting stuck consumers.

Full index: https://klag.dev/llms.txt | Full text: https://klag.dev/llms-full.txt

## Docs

- [Group Filtering](https://klag.dev/configuration/group-filtering/): Control which Kafka consumer groups Klag monitors using glob include and exclude patterns.
- [Configuration Reference](https://klag.dev/configuration/reference/): Complete reference of every Klag environment variable across app, Kafka, metrics, hot partitions, time-based lag, MCP, OTLP, and logging.
