Hi Iirop, question: > If not, what is the best way to know how many messages with a specific key got inside a topic?
why do require this information? is this a business metric? or are you looking at it from an operational point of view? I'm not aware of any metric that will give you the per-key/partition distribution, especially from the broker side. -- Pere On Fri, Feb 24, 2023 at 4:46 PM lirop kaykov <lironkay...@gmail.com> wrote: > Hi, I have a question about monitoring kafka. > When using jmx exporter and kafka exporter, you get key metrics like topic > metrics (bytes in per second, messages in per second etc). > Is there a way to get bytes/messages per second per message key? > Meaning, getting the distribution of messages by key. > If not, what is the best way to know how many messages with a specific key > got inside a topic? > -- Pere Urbon-Bayes Software Architect https://twitter.com/purbon https://www.linkedin.com/in/purbon/