A standalone spring boot app for reporting kafka consumer group lag metrics to prometheus. Tested with Kafka 1.0
Prometheus scrape endpoint: http://host:port/actuator/prometheus-kafka
Following properties are required: kafka.brokers= broker urls kafka.consumerGroups= list of consumer groups separated by comma
The properties can be configured from the web/src/main/resources/application.properties file. If you are using docker, these properties can be overridden using the following environment variables.
KAFKA_BROKERS & KAFKA_CONSUMER_GROUPS
The docker image is available on docker hub
docker pull feli6/kafka-consumer-lag-reporter