Apache Kafka monitoring
Distinguish Kafka replica degradation from partitions that are unavailable or below their configured minimum in-sync replica count.
Last updated
On this page (5)
Apache Kafka ยท Monitoring
Before you start
- A Kafka cluster with private or authenticated JMX collection.
- Known topic replication factors and min.insync.replicas settings.
Procedure
- Collect broker ReplicaManager UnderReplicatedPartitions and UnderMinIsrPartitionCount, and controller OfflinePartitionsCount. Keep broker and controller labels and account for active controller leadership changes.
- Page on offline partitions separately from prolonged under-replication; treat partitions below minimum ISR as a distinct write-availability signal for acks=all producers.
- Correlate alerts with a dedicated test topic and normal rolling-maintenance windows, without suppressing actual offline partitions.
Verify the result
- A planned staging broker restart on a replicated test topic produces the expected degradation signal and clears after ISR recovers.
- The test producer using acks=all and the consumer continue if the remaining ISR is sufficient; check write errors separately from metric recovery.
