braedon / prometheus-kafka-consumer-group-exporter

Prometheus Kafka Consumer Group Exporter
MIT License
73 stars 39 forks source link

kafka_consumer_group_exporter_lag == 1 when fully caught up #32

Closed jutley closed 5 years ago

jutley commented 5 years ago

When the exporter is fully caught up, the lag reports as 1 instead of 0.

Topic highwaters are the offset where the next message will be written. Since the exporter is subtracting the most recently read message, this will result in a difference of 1.

We don't see this for the normal lag metric because consumer groups commit the offset they should begin reading from, similar to topics.

braedon commented 5 years ago

Fixed in 0.5.3