[ 
https://issues.apache.org/jira/browse/KAFKA-1877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14311274#comment-14311274
 ] 

Manikumar Reddy commented on KAFKA-1877:
----------------------------------------

[~jkreps] [~junrao]  Currently Kafka metrics can return only double value 
(Metric.java). 
How to handle future metrics which can return other data types (int, long, 
string).?
We may need to introduce generic types to metrics.  This will be a sizable 
change and will change some public APIs.

I encountered this, while I was trying to include version info to producer 
metrics. 

> Expose version via JMX for 'new' producer 
> ------------------------------------------
>
>                 Key: KAFKA-1877
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1877
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, producer 
>    Affects Versions: 0.8.2
>            Reporter: Vladimir Tretyakov
>            Assignee: Manikumar Reddy
>             Fix For: 0.8.3
>
>
> Add version of Kafka to jmx (monitoring tool can use this info).
> Something like that
> {code}
> kafka.common:type=AppInfo,name=Version
>       Value java.lang.Object = 0.8.2-beta
> {code}
> we already have this in "core" Kafka module (see kafka.common.AppInfo object).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to