This project is using to export kafka consumer lag metrics to Prometheus.
-
Go to project root directory $project_dir
mvn package assembly:single -
Copy the kafka-consumer-lag-1.0-SNAPSHOT-jar-with-dependencies.jar to ./kafka-consumer-lag/lib
-
Under $project_dir/kafka-consumer-lag. Start service with below command. bin/consumer_lag.sh start
-
Check the metrics with http request. http://localhost:8089/metrics
- Copy the entire directory kafak-consumer-lag to a directory on your server
- Start service with command "bin/consumer_lag.sh start"