Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Topic consumption rate

I want to know the rate at which a topic is being consumed. There are Messages in /sec in the Kafka-manager metric, but there is no Messages out /sec I want. What should I do?

like image 914
Cheng Jiang Avatar asked Mar 25 '26 13:03

Cheng Jiang


1 Answers

Kafka brokers do not have Messages out /sec metrics because when batches are sent to consumers they are not decompressed hence brokers do not know the exact raw message count.

Kafka brokers have bytes out / sec metrics per topic. That usually gives a good idea of consuemr activity. If you know the average message size, you can deduce a rough estimate of the messages out / sec value. See http://kafka.apache.org/documentation/#monitoring

On the other hand, Kafka Consumers do expose received messages rates: http://kafka.apache.org/documentation/#consumer_fetch_monitoring

like image 162
Mickael Maison Avatar answered Mar 27 '26 23:03

Mickael Maison



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!