KIP-1001 — Add CurrentControllerId Metric
Accepted Kafka 3.7 KRaftMetrics
Adds a `CurrentControllerId` metric exposed on every broker and controller node that reports the node ID of the active KRaft (or ZooKeeper) controller, or -1 if unknown. Identifying the current active controller requires either checking each node's `ActiveControllerCount` metric individually or parsing metadata logs; there is no single metric queryable from any node that identifies which node is the controller.
Details
| Author | Colin McCabe |
| Status | Accepted |
| Kafka Version | 3.7 |
| JIRA | KAFKA-15980 |
| Wiki | View on Apache Wiki |
| Created | 2023-11-09 |
| Last Modified | 2023-12-06 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.