Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-17161

REST Jersey metric names are inconsistent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.6.2
    • None
    • core
    • 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
      

      Attachments

        Activity

          People

            satzkumr Sathishkumar Manimoorthy
            dhoard Doug Hoard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: