KIP-1131 — Improved controller-side monitoring of broker states
Accepted Kafka 4.1 KRaftMetrics
Adds per-broker `BrokerRegistrationState` metrics and a `ControlledShutdownBrokerCount` metric on the KRaft controller to expose individual broker states without requiring log inspection. The existing `ActiveControllerCount` and fenced/unfenced broker count metrics provide only aggregate totals; diagnosing which specific broker entered a particular state requires manual parsing of the metadata log.
Details
| Author | Kevin Wu |
| Status | Accepted |
| Kafka Version | 4.1 |
| JIRA | KAFKA-18666 |
| Wiki | View on Apache Wiki |
| Created | 2025-01-24 |
| Last Modified | 2025-04-30 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.