Slide 9 of 11

Kafka integration

Kafka integration

The Kafka integration provides streaming platform monitoring for Apache Kafka clusters, including brokers, topics, and consumer groups.

What it’s forMonitoring broker health, consumer lag, and message throughput
Who uses itData engineers, platform teams, anyone running Kafka streaming infrastructure
Under the hoodCollects JMX metrics from Kafka brokers via the JMX exporter

Metrics collected

The integration collects metrics across brokers, topics, and consumers:

  • Broker: JVM, requests, replication
  • Topics: Messages in/out, partitions
  • Consumer: Lag, offset, group status
  • ZooKeeper: Connections, latency (if used)

What to know

  • Prebuilt dashboards: broker, topic, consumer
  • Prebuilt alerts: consumer lag, broker health
  • Partition distribution visibility

Set it up

Open this learning path in your Grafana Cloud stack for a fully interactive experience, or read through it to understand the process first.

Learning path

Monitor Kafka with Grafana Cloud

Welcome to the Kafka monitoring learning path that shows you how to use Grafana Alloy to send Kafka metrics to Grafana Cloud for comprehensive event streaming observability.

22 min
Beginner
Docs & blog posts

Open in Grafana Cloud

Complete this learning path directly in your Grafana Cloud stack with an interactive learning experience.

Script

Kafka is complex, with brokers, topics, partitions, and consumer groups working together, and the integration gives you visibility into all of it.

Broker metrics are your cluster health foundation, covering JVM memory and garbage collection, request rates, and replication, since Kafka’s Java base means JVM health drives performance. But consumer lag is the metric that matters most: growing lag means consumers are falling behind producers, which eventually affects your applications.

Setup requires JMX access to your brokers. Watch cardinality too, because environments with thousands of topics and groups generate huge numbers of time series, so filter to what matters.

This integration is essential for production Kafka, where catching problems early keeps streaming reliable.