Check consumer group lag
Show lag for each partition of a consumer group
kafka-consumer-groups.sh --bootstrap-server kafka:9092 --describe --group <group>
- tool
- kafka20 commands
- tags
- kafkamonitoringdebug
More kafka commands
-
kafka-consumer-groups.sh --bootstrap-server kafka:9092 --group <group> --topic <topic> --reset-offsets --to-earliest --executeMove a consumer group back to the beginning of the topic
-
kafka-topics.sh --bootstrap-server kafka:9092 --alter --topic <name> --partitions 6Increase the number of partitions in a topic (you cannot decrease it)
-
kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list kafka:9092 --topic <name>Show the latest offset for each partition (add `--time -2` for the earliest)
-
kafka-topics.sh --bootstrap-server kafka:9092 --create --topic my-topic --partitions 6 --replication-factor 3Create a new Kafka topic with 6 partitions and RF=3
-
kafka-consumer-groups.sh --bootstrap-server kafka:9092 --describe --group my-groupShow lag for each partition of a consumer group