I am trying to get the number of new messages published to a particular Kafka topic over a period of time using the below PromQL.
But it doesn't look correct: the number returned by PromQL doesn't match with the actual number of messages published to the topic
sum(increase(kafka_server_brokertopicmetrics_messagesin_total{topic=~"topic1", instance=~"instance1"}[5m]))