KIP-1207 — Fix anomaly of JMX metrics RequestHandlerAvgIdlePercent in kraft combined mode
Accepted Kafka 4.2 KRaftMetrics
Fixes the RequestHandlerAvgIdlePercent JMX metric in KRaft combined mode (broker+controller co-located) where the value incorrectly reported ~2.0 instead of 0–1, and adds separate BrokerRequestHandlerAvgIdlePercent and ControllerRequestHandlerAvgIdlePercent metrics. In combined mode, two separate KafkaRequestHandlerPool objects both divided their idle time by numIoThreads before reporting to a shared Meter, effectively halving the denominator and doubling the reported ratio.
Details
| Author | tony tang |
| Status | Accepted |
| Kafka Version | 4.2 |
| JIRA | KAFKA-19606 |
| Wiki | View on Apache Wiki |
| Created | 2025-08-19 |
| Last Modified | 2025-10-16 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.