kafka_exporter
kafka_exporter copied to clipboard
consumergroupLag may be negative
The current master branch may get negative consumergroupLag because it runs getConsumerGroupMetrics func after getTopicMetrics func. In fact, this problem has always existed.
As we know, consumer action falls behind producer action, the current offset committed may be bigger than newest offset got before when runs getConsumerGroupMetrics func after getTopicMetrics func, which will cause the metrics is not correct, and we could not know the negative value means something wrong or means no lag.
To solve this, suggest that we can run getConsumerGroupMetrics firstly, and then run getTopicMetrics.
i have the same problem. any progress?
kafka_consumergroup_lag{namespace="namespace", consumergroup="group", topic="topicname", strimzi_io_cluster="cluster-name"} < 0
Hello
We are getting a no Kafka lag metrics every hour and a half and think this could be related, since the value comes back
This Is impacting alerting Is there any workaround?