Current state: "Under Discussion"
Discussion thread: here
JIRA: here
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
Kafka currently emits metrics for producers and consumers with different naming conventions in the topic metrics. Specifically, Kafka consumer metrics replace periods (.) in topic names with underscores (_), while Kafka producer metrics retain the period separator. This inconsistency can lead to confusion, misinterpretation of metric names, and additional overhead for users managing Kafka metrics.
This Kafka Improvement Proposal (KIP) aims to unify the naming conventions for Kafka consumer metrics by following the Kafka producer metrics nomenclature, preserving the original format of topic names (including periods).
The current inconsistency in metric naming across Kafka consumers and producers presents challenges for users monitoring and managing Kafka metrics. For example:
Currently, when a Kafka consumer metric is emitted, any periods (.) in the topic name are replaced with underscores (_). This behavior diverges from the Kafka producer metrics, which retain periods in topic names.
The following Kafka consumer metrics will be impacted by this change:
consumer-fetch-manager-metricsTopic:records-consumed-totalfetch-size-avgrecords-per-request-avgTopic-Partition:records-lag-maxrecords-lagrecords-lag-avgpreferred-read-replicarecords-lead-minrecords-lead-avgrecords-leadWith this KIP, these metrics will emit topic names without any modification to periods, matching the producer naming scheme. Exisiting consumer-fetch-manager-metrics will be marked deprecated and shall be removed in future releases.
Remove Replacement of Periods in Consumer Metrics Topic Names:
To ease the transition for users who rely on the existing underscore-based consumer metric naming:
N/A