Quick Start
The fastest way to try Klag is the published Docker image.
Docker (JVM)
Section titled “Docker (JVM)”docker run -e KAFKA_BOOTSTRAP_SERVERS=kafka:9092 \ -e METRICS_REPORTER=prometheus \ -p 8888:8888 \ themoah/klag:latestMetrics are then available at http://localhost:8888/metrics.
Native image (faster startup, lower memory)
Section titled “Native image (faster startup, lower memory)”A GraalVM native build is published alongside the JVM image, tagged :native and
:<version>-native:
docker run -e KAFKA_BOOTSTRAP_SERVERS=kafka:9092 \ -e METRICS_REPORTER=prometheus \ -p 8888:8888 \ themoah/klag:nativeThe native binary starts in ~70–100 ms using ~44 MB RSS, versus ~500 ms / ~119 MB for the JVM image, ideal for fast scaling and low-footprint deployments. Same config, endpoints, and metrics. See Native Image for build details.
HTTP endpoints
Section titled “HTTP endpoints”Once running, Klag exposes:
| Endpoint | Purpose |
|---|---|
/healthz | Liveness probe (always 200). |
/readyz | Readiness probe (200 if Kafka UP, 503 if DOWN). |
/metrics | Prometheus scrape endpoint (when enabled). |
/version | Build information. |
/mcp | MCP endpoint for AI agents (when MCP_ENABLED=true). |
What’s next
Section titled “What’s next”- Installation: Helm chart, Docker env-file.
- Configuration Reference: every environment variable.
- Metrics Overview: the full metric catalog.