braedon / prometheus-kafka-consumer-group-exporter

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

if it support old consumer? #14

Closed xuejipeng closed 6 years ago

braedon commented 6 years ago

Hi @xuejipeng,

This project reads the __consumer_offsets topic to get the consumer offsets, so it should support the old consumer if you are storing its offsets in Kafka. i.e. your consumer needs to be configured with offsets.storage=kafka.

If you aren't using Kafka offset storage currently, this section of the Kafka docs could help: https://kafka.apache.org/documentation/#offsetmigration`

Does that answer your question?

Regards, Braedon

xuejipeng commented 6 years ago

@braedon sorry, you mean if i am not config the offsets.storage=kafka, and my consumergroup type is ZK, it will not get the metrics about consumergroup?

braedon commented 6 years ago

@xuejipeng that is correct - this project will not get consumer group metrics without offsets.storage=kafka.