KIP-877 — Mechanism for plugins and connectors to register metrics
Accepted Kafka 4.1 MetricsConnect
Adds a MetricsRegistry to the plugin configuration context so that Kafka plugins (partitioners, interceptors, Connect connectors, etc.) can register metrics that inherit parent component tags and reporters. Plugins that created their own Metrics instances got no parent tags, no reporter integration, and caused failures with singleton reporters like CruiseControlMetricsReporter when instantiated multiple times.
Details
| Author | Mickael Maison |
| Status | Accepted |
| Kafka Version | 4.1 |
| JIRA | KAFKA-15995 |
| Wiki | View on Apache Wiki |
| Created | 2022-10-10 |
| Last Modified | 2025-09-29 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.