[ https://issues.apache.org/jira/browse/KAFKA-7681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16718138#comment-16718138 ]
Mayuresh Gharat commented on KAFKA-7681: ---------------------------------------- Hi [~junrao], # IIUC, After inspecting the code and your suggestion above, this seems doable by adding a new metric type like "localTimeRate" or "RequestHandlerThreadpoolUitlizationRate" or similar and having it as a Meter() like we have for {code:java} totalProduceRequestRate {code}. This will give us the rate of local time for each request which ~ usage of the RequestHandlerThreadPool. # I was thinking more on the lines of having a ratio, that would give us instantaneous value (Guage) like we have for "NetworkProcessorAvgIdlePercent", but for each request type wherein the {code:java} value = (Total sampled Local Time of A Request) / (Total of sampled local times of all the requests) {code} > new metric for request thread utilization by request type > --------------------------------------------------------- > > Key: KAFKA-7681 > URL: https://issues.apache.org/jira/browse/KAFKA-7681 > Project: Kafka > Issue Type: Improvement > Reporter: Jun Rao > Assignee: Mayuresh Gharat > Priority: Major > > When the request thread pool is saturated, it's often useful to know which > type request is using the thread pool the most. It would be useful to add a > metric that tracks the fraction of request thread pool usage by request type. > This would be equivalent to (request rate) * (request local time ms) / 1000, > but will be more direct. This would require a new KIP. -- This message was sent by Atlassian JIRA (v7.6.3#76005)