Apache Kafka Consumer Lag Runbook

Diagnoses Kafka consumer group lag using the Kafka AdminClient API and JMX metrics exposed via the Confluent Metrics API. Identifies slow consumers, topic partition hotspots, and broker rebalance storms that contribute to lag growth. Provides a step-by-step runbook to tune fetch.min.bytes, max.poll.records, and partition count.

agentskillexchange Updated 28 repo stars

File contents

Apache Kafka Consumer Lag Runbook

Diagnoses Kafka consumer group lag using the Kafka AdminClient API and JMX metrics exposed via the Confluent Metrics API. Identifies slow consumers, topic partition hotspots, and broker rebalance storms that contribute to lag growth. Provides a step-by-step runbook to tune fetch.min.bytes, max.poll.records, and partition count.

Prerequisites

Java

Installation

Use the upstream install or setup path that matches your environment:

  • docker run -p 9092:9092 apache/kafka:latest

Requirements and caveats from upstream:

  • Using docker image:
  • See docker/README.md for detailed information.

Basic usage or getting-started notes:

Documentation

Source

agentskillexchange/skills/tree/main/skills/apache-kafka-consumer-lag-runbook commit 47e2aa575d

Frequently asked questions

npx skillmds@latest add agentskillexchange/apache-kafka-consumer-lag-runbook