You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Alexey Pirogov (JIRA)" <ji...@apache.org> on 2015/12/22 04:25:46 UTC

[jira] [Created] (KAFKA-3028) "producer.request-latency-avg/max" metric can't report latency less than 1ms

Alexey Pirogov created KAFKA-3028:
-------------------------------------

             Summary: "producer.request-latency-avg/max" metric can't report latency less than 1ms
                 Key: KAFKA-3028
                 URL: https://issues.apache.org/jira/browse/KAFKA-3028
             Project: Kafka
          Issue Type: Bug
            Reporter: Alexey Pirogov


"producer.request-latency-avg/max" metric report NaN if latency is less than 1ms.

Maybe it is possible to measure nanoseconds or at least to doulbe for latency measuring.

http://mail-archives.apache.org/mod_mbox/kafka-users/201512.mbox/%3CCAD5tkZbyCRJpwTW3XPOYhkx%3Dcs6a0Xo4mNVVJJGXisiSKczTCA%40mail.gmail.com%3E

"Hi Alexey,

Could you please report a bug in JIRA for the NaN result? We should handle
that better.

Thanks,
Ismael

On Mon, Dec 21, 2015 at 9:12 AM, Alexey Pirogov <pi...@gmail.com>
wrote:

> I'm looking for help with a question regarding measuring of producer
> request latency.
> I expected that "producer.request-latency-avg/max" will do a good job for
> me. But seems that if latencies less than 1ms in most cases, this metric
> will emit NaN(as it doesn't support float values).
> We need this metric for monitoring purpose.
>
> Is there any way to producer request latency statistic without adding
> callback or blocking of Future from KafkaProducer.send(...) method?
>
> P.S. Technically, we could treat NaN from "producer.request-latency-avg"
> metric as a special case in our monitoring tool, but it will required some
> specific configuration only for this metric.
>
> Thank you,
> Alexey"



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