kafka icon indicating copy to clipboard operation
kafka copied to clipboard

[LI-HOTFIX] Add quota bound sensor

Open lmr3796 opened this issue 3 years ago • 2 comments

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

lmr3796 avatar Mar 16 '21 19:03 lmr3796

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 avatar Mar 17 '21 03:03 gitlw

@gitlw I've also added utilization rate

lmr3796 avatar Mar 19 '21 08:03 lmr3796