KIP-1229 — Add Idle Thread Ratio Metric to MetadataLoader
Accepted Kafka 4.2 KRaftMetrics
Adds an AvgIdleRatio metric to the MetadataLoader event queue thread, mirroring the existing metric on QuorumController's ControllerEventManager. The MetadataLoader, which distributes metadata changes from the Raft layer to publishers like the BrokerMetadataListener, lacked any idle-ratio visibility, making it impossible to detect metadata propagation bottlenecks in KRaft clusters.
Details
| Author | Mahsa Seifikar |
| Status | Accepted |
| Kafka Version | 4.2 |
| JIRA | KAFKA-19791 |
| Wiki | View on Apache Wiki |
| Created | 2025-10-15 |
| Last Modified | 2025-10-27 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.