KIP-1297 — Role-Aware Metric Tags for NodeToControllerChannelManagerImpl
Discussion MetricsKRaft
Adds a role tag (broker, controller, or broker+controller) to the metric labels emitted by NodeToControllerChannelManagerImpl so that SelectorMetrics can be disambiguated by node role in KRaft mode. The component currently tags metrics only with broker-id, producing duplicate or misleading metrics on controller-only or combined nodes where brokerId is not meaningful.
Details
| Author | Nilesh Kumar |
| Status | Discussion |
| JIRA | KAFKA-20199 |
| Wiki | View on Apache Wiki |
| Created | 2026-03-19 |
| Last Modified | 2026-03-20 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.