rodesai commented on a change in pull request #11149: URL: https://github.com/apache/kafka/pull/11149#discussion_r695341815
########## File path: clients/src/main/java/org/apache/kafka/clients/consumer/internals/KafkaConsumerMetrics.java ########## @@ -63,6 +66,18 @@ public KafkaConsumerMetrics(Metrics metrics, String metricGrpPrefix) { metricGroupName, "The average fraction of time the consumer's poll() is idle as opposed to waiting for the user code to process records."), new Avg()); + + this.commitSyncSensor = metrics.sensor("commit-sync-time-total"); + this.commitSyncSensor.add( + metrics.metricName("commit-sync-time-total", metricGroupName), + new CumulativeSum() + ); + + this.committedSensor = metrics.sensor("committed-time-total"); + this.committedSensor.add( + metrics.metricName("committed-time-total", metricGroupName), + new CumulativeSum() + ); Review comment: ack - will defer to a follow-up PR -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org