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

  1. Collect broker ReplicaManager UnderReplicatedPartitions and UnderMinIsrPartitionCount, and controller OfflinePartitionsCount. Keep broker and controller labels and account for active controller leadership changes.
  2. Page on offline partitions separately from prolonged under-replication; treat partitions below minimum ISR as a distinct write-availability signal for acks=all producers.
  3. 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.

Official documentation

Have Pilae operate Apache Kafka

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.