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

José Armando García Sancio updated KAFKA-19991:
-----------------------------------------------
    Description: 
A few of the metrics reported by Kafka have the wrong type here are some 
examples:

kafka.server:type=raft-metrics

!image-2025-12-12-10-42-18-387.png!

kafka.server:type=broker-metadata-metrics

!image-2025-12-12-10-41-51-845.png! Notice how many of the values are double 
instead of integer. This is most likely because the anonymous Java functions 
are getting typed to Measurable instead of MetricValueProvider<Integer>.

  was:
A few of the metrics reported by Kafka have the wrong type here are some 
examples:

kafka.server:type=raft-metrics

!image-2025-12-12-10-42-18-387.png!

kafka.server:type=broker-metadata-metrics

!image-2025-12-12-10-41-51-845.png!


> Incorrect types for some metrics
> --------------------------------
>
>                 Key: KAFKA-19991
>                 URL: https://issues.apache.org/jira/browse/KAFKA-19991
>             Project: Kafka
>          Issue Type: Bug
>          Components: metrics
>            Reporter: José Armando García Sancio
>            Assignee: José Armando García Sancio
>            Priority: Major
>         Attachments: image-2025-12-12-10-41-51-845.png, 
> image-2025-12-12-10-42-18-387.png, kraft-metrics.pdf
>
>
> A few of the metrics reported by Kafka have the wrong type here are some 
> examples:
> kafka.server:type=raft-metrics
> !image-2025-12-12-10-42-18-387.png!
> kafka.server:type=broker-metadata-metrics
> !image-2025-12-12-10-41-51-845.png! Notice how many of the values are double 
> instead of integer. This is most likely because the anonymous Java functions 
> are getting typed to Measurable instead of MetricValueProvider<Integer>.



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

Reply via email to