KIP-1190 — Add a metric for controller thread idleness
Accepted Kafka 4.2 KRaftMetrics
Adds an AvgIdleRatio metric to the ControllerEventManager showing the fraction of time the controller event loop thread is idle (0=always busy, 1=always idle). No metric existed for controller thread idleness, making it impossible to detect saturation, anticipate bottlenecks, or distinguish whether slow operations were caused by overloaded processing or simply rare events.
Details
| Author | Mahsa Seifikar |
| Status | Accepted |
| Kafka Version | 4.2 |
| JIRA | KAFKA-19467 |
| Wiki | View on Apache Wiki |
| Created | 2025-07-03 |
| Last Modified | 2025-10-02 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.