Afshin Moazami created KAFKA-16042:
--------------------------------------
Summary: Quota Metrics based on per topic-partition produce/fetch
byte rate
Key: KAFKA-16042
URL: https://issues.apache.org/jira/browse/KAFKA-16042
Project: Kafka
Issue Type: New Feature
Components: core
Reporter: Afshin Moazami
Assignee: Afshin Moazami
Currently, Kafka emits the producer-byte-rate and fetch-bytes-rate for quota
calculations. By adding a new signature to the
`[quotaMetricTags|https://github.com/afshing/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/server/quota/ClientQuotaCallback.java#L40]`
method to add the individual topic-partitions size as a parameter, we can
define metrics based on the topic name and partition id.
To do that, we need both `ProduceRequest` and `FetchResponse` have the
`partitionSizes` method and it is public.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)