Hi All,
I have a requirement to display the total number of messages in a topic in
grafana dashboard.
I am looking at the metrics exposed by kafka broker and came across the
following metrics.
kafka_log_log_logendoffset
kafka_log_log_logstartoffset

My understanding is that if I take the difference of
kafka_log_log_logendoffset and kafka_log_log_logstartoffset it should
result in the number of messages present in the topic.
Is my understanding correct ?

Thanks,
Dhirendra.

Reply via email to