conduktor.io ↗

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

Authortony tang
StatusDiscussion
JIRAKAFKA-20513
WikiView on Apache Wiki
Created2026-04-21
Last Modified2026-05-26
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.