Skip to content

MFrancesco/kafkalagexporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Lag Expoter

1 class and 125 line Spring-Boot application to read and export Apache Kafka Lag as a metric

Apache Kafka Lag is a particular metric that tell us how much lag for a specific topic a consumer group have.

This particular implementation will expose the lag as a micrometer gauge to be consumed by prometheus on the /actuator/prometheus endpoint, and can be easily changed to suits your preferred monitoring application.

How to

  • Make package - Compile
  • Make docker - Create the docker

The spring app can be configured by mounting the docker volume /opt/cfg where the app configuration files are fetched.

Make sure to customize the application so it can run in your environment.

About

Spring application to calculate and export the kafka lag metric

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors