You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Guozhang Wang (Jira)" <ji...@apache.org> on 2021/08/27 17:35:00 UTC

[jira] [Updated] (KAFKA-13243) Differentiate metric latency measured in millis and nanos

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

Guozhang Wang updated KAFKA-13243:
----------------------------------
    Description: 
Today most of the client latency metrics are measured in millis, and some in nanos. For those measured in nanos we usually differentiate them by having a `-ns` suffix in the metric names, e.g. `io-wait-time-ns-avg` and `io-time-ns-avg`. But there are a few that we obviously forgot to follow this pattern, e.g. `io-wait-time-total`: it is inconsistent where `avg` has `-ns` suffix and `total` has not. I did a quick search and found just two of them:

* bufferpool-wait-time-total : bufferpool-wait-time-ns-total
* io-wait-time-total: io-wait-time-ns-total
* iotime-total: io-time-ns-total (note that there are two inconsistencies on naming, the average metric is `io-time-ns-avg` whereas total is `iotime-total`, I suggest we use `io-time` instead of `iotime` for both).

We should change their name accordingly with the `-ns` suffix as well.

  was:
Today most of the client latency metrics are measured in millis, and some in nanos. For those measured in nanos we usually differentiate them by having a `-ns` suffix in the metric names, e.g. `io-wait-time-ns-avg` and `io-time-ns-avg`. But there are a few that we obviously forgot to follow this pattern, e.g. `io-wait-time-total`: it is inconsistent where `avg` has `-ns` suffix and `total` has not. I did a quick search and found just two of them:

* bufferpool-wait-time-total : bufferpool-wait-time-ns-total
* io-wait-time-total: io-wait-time-ns-total

We should change their name accordingly with the `-ns` suffix as well.


> Differentiate metric latency measured in millis and nanos
> ---------------------------------------------------------
>
>                 Key: KAFKA-13243
>                 URL: https://issues.apache.org/jira/browse/KAFKA-13243
>             Project: Kafka
>          Issue Type: Improvement
>          Components: metrics
>            Reporter: Guozhang Wang
>            Priority: Major
>              Labels: needs-kip
>
> Today most of the client latency metrics are measured in millis, and some in nanos. For those measured in nanos we usually differentiate them by having a `-ns` suffix in the metric names, e.g. `io-wait-time-ns-avg` and `io-time-ns-avg`. But there are a few that we obviously forgot to follow this pattern, e.g. `io-wait-time-total`: it is inconsistent where `avg` has `-ns` suffix and `total` has not. I did a quick search and found just two of them:
> * bufferpool-wait-time-total : bufferpool-wait-time-ns-total
> * io-wait-time-total: io-wait-time-ns-total
> * iotime-total: io-time-ns-total (note that there are two inconsistencies on naming, the average metric is `io-time-ns-avg` whereas total is `iotime-total`, I suggest we use `io-time` instead of `iotime` for both).
> We should change their name accordingly with the `-ns` suffix as well.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)