[ https://issues.apache.org/jira/browse/KAFKA-3564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15248399#comment-15248399 ]
Guozhang Wang commented on KAFKA-3564: -------------------------------------- I see your point now, in that case you can just call {{Rate()}}, which will use a default {{SampledTotal}} in that class: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/metrics/stats/Rate.java#L113 As stated in the java doc "By default this is the total observed over a set of samples from a sampled statistic divided by the elapsed time over the sample windows." I think that should work for your case? > Count metric always increments by 1.0 > ------------------------------------- > > Key: KAFKA-3564 > URL: https://issues.apache.org/jira/browse/KAFKA-3564 > Project: Kafka > Issue Type: Bug > Affects Versions: 0.10.1.0 > Reporter: Michael Coon > Assignee: Kim Christensen > > The Count metric's update method always increments its value by 1.0 instead > of the value passed to it. If this is by design, it's misleading as I want to > be able to count based on values I send to the record method. -- This message was sent by Atlassian JIRA (v6.3.4#6332)