Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.6.2
-
None
-
None
Description
Summary
When exporting JMX metrics from a server, REST Jersey metric names are inconsistent, resulting in two metrics different metrics with the same value.
v3.topics-partitions-reassignment.list.request-total v3.topics.partitions-reassignment.list.request-total
Dash versus period (.) between topics and partitions
This most likely affects older versions.
Test scenario
Install Kafka 3.6.2 with the Prometheus JMX Exporter v1.0.1 and collect metrics. The exporter adds a label "_objectname" for metrics that map to the same Prometheus name.
Example exporter output
# HELP kafka_rest_jersey_metrics_v3_topics_partitions_reassignment_list_request The request count using a cumulative counter kafka.rest:name=null,type=jersey-metrics,attribute=v3.topics.partitions-reassignment.list.request-total # TYPE kafka_rest_jersey_metrics_v3_topics_partitions_reassignment_list_request untyped kafka_rest_jersey_metrics_v3_topics_partitions_reassignment_list_request{_objectname="kafka.rest<type=jersey-metrics><>v3.topics-partitions-reassignment.list.request-total"} 0.0 kafka_rest_jersey_metrics_v3_topics_partitions_reassignment_list_request{_objectname="kafka.rest<type=jersey-metrics><>v3.topics.partitions-reassignment.list.request-total"} 0.0