lucliu1108 commented on code in PR #21201:
URL: https://github.com/apache/kafka/pull/21201#discussion_r2640675871


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImpl.java:
##########
@@ -150,12 +150,12 @@ public int hashCode() {
     public static final String OPERATIONS = " operations";
     public static final String TOTAL_DESCRIPTION = "The total number of ";
     public static final String RATE_DESCRIPTION = "The average per-second 
number of ";
-    public static final String RATIO_DESCRIPTION = "The fraction of time the 
thread spent on ";
     public static final String AVG_LATENCY_DESCRIPTION = "The average latency 
of ";
     public static final String MAX_LATENCY_DESCRIPTION = "The maximum latency 
of ";
     public static final String LATENCY_DESCRIPTION_SUFFIX = " in milliseconds";
     public static final String RATE_DESCRIPTION_PREFIX = "The average number 
of ";
     public static final String RATE_DESCRIPTION_SUFFIX = " per second";
+    public static final String WINDOWED_RATIO_DESCRIPTION_PREFIX = "The ratio, 
over a rolling measurement window, ";

Review Comment:
   Right now this prefix consts is only used for thread. But it could be used 
for describing against something other units in the future.
   The name of this const doesn't carry meaning about the entity (e.g.time, 
thread) described, so I added another const here to address that.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to