KIP-1322 — Add metrics to Kraft that measure the number of fetch timeouts and election timeouts
Discussion KRaftMetrics
Adds two cumulative gauges to the kafka.raft:type=raft-metrics group, timeout-expirations{timer-name=fetch} and timeout-expirations{timer-name=election}, incremented each time the corresponding raft timer transitions from unexpired to expired during a poll. KRaft leader election and fault recovery hinge on these two timeouts, yet no metric tracked how often they fire, leaving operators without a direct signal for network instability in the metadata quorum.
Details
| Author | tony tang |
| Status | Discussion |
| JIRA | KAFKA-20513 |
| Wiki | View on Apache Wiki |
| Created | 2026-04-21 |
| Last Modified | 2026-05-26 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.