Hi All,
Which metric should be used when trying to get the number of messages which are 
being produced to a topic ?
I tried this in Prometheus 
:sum(irate(kafka_server_brokertopicmetrics_messagesin_total{topic="my-topic"}[1m]))


This works when I use a non-transactional producer.
However, when I use a transactional producer, I see that for every message that 
I produce, there is an additional message called AddPartitionsToTxn (as seen in 
a packet capture).
This causes the metric to show double the rate at which I am actually expecting.
So, any suggestions which metric on the broker side to use to calculate the 
rate of messages that are being published to the topic ?
Regards,Neeraj


Reply via email to