kafka
kafka copied to clipboard
[LI-HOTFIX] Add quota bound sensor
This patch adds QuotaBound sensor and QuotaUtilization sensor, in
addition to the existing byte-rate & throttle-count sensors.
The QuotaBound sensor records the value of of
org.apache.kafka.common.metrics.Quota#bound
if it exists.
This process happens on the
kafka.server.ClientQuotaManager#recordAndGetThrottleTimeMs
code path,
where quota check actually takes place.
TICKET = N/A LI_DESCRIPTION = LIKAFKA-35289 EXIT_CRITERIA = When upstream implement similar sensors
Thanks for the PR @lmr3796 Besides the bound as bytes/s, we also want to show the utilization ratio, i.e. the usage / bound.
@gitlw I've also added utilization rate