Status
Current state: [Under Discussion"]
Discussion thread: here [Change the link from the KIP proposal email archive to your own email thread]
JIRA: KAFKA-7681
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
Motivation
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 per request type that gives us of fraction of the thread pool time (local time) its using.
Public Interfaces
MBean :
kafka.network:type=RequestMetrics,name=RequestHandlerPoolUsageRate,request=api_key_name
type: meter
value: Fraction of the time a particular request type spent on the request handler pool.
Proposed Changes
We will add the relevant metrics as specified in the Public Interfaces section.
Compatibility, Deprecation, and Migration Plan
We are introducing new metrics so there is no compatibility impact.