You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Sathishkumar Manimoorthy (Jira)" <ji...@apache.org> on 2024/07/22 16:56:00 UTC

[jira] [Assigned] (KAFKA-17161) REST Jersey metric names are inconsistent

     [ https://issues.apache.org/jira/browse/KAFKA-17161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sathishkumar Manimoorthy reassigned KAFKA-17161:
------------------------------------------------

    Assignee: Sathishkumar Manimoorthy

> REST Jersey metric names are inconsistent
> -----------------------------------------
>
>                 Key: KAFKA-17161
>                 URL: https://issues.apache.org/jira/browse/KAFKA-17161
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.6.2
>            Reporter: Doug Hoard
>            Assignee: Sathishkumar Manimoorthy
>            Priority: Minor
>
> *Summary*
> When exporting JMX metrics from a server, REST Jersey metric names are inconsistent, resulting in two metrics different metrics with the same value.
> {code:java}
> v3.topics-partitions-reassignment.list.request-total
> v3.topics.partitions-reassignment.list.request-total{code}
> 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*
> {noformat}
> # 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
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)