Skip to content

Simple parser kafka consumer lag metrics from kafka-manager api and send to graphite

License

Notifications You must be signed in to change notification settings

aseev-xx/kafka-consumer-lag-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kafka consumer lag metrics

Simple parser kafka consumer lag metrics from kafka-manager api and send to graphite

Getting started

Prerequisites

Kafka-manager Routes: https://github.com/yahoo/kafka-manager/blob/master/conf/routes

Usage

$ python ./consumer_lag.py

Simple output:

sending message:
prefix.graphite.kafka_cluster_1.KF.development-consumer-1.dev-topic1 1234 1553678915
prefix.graphite.kafka_cluster_1.KF.development-consumer-1.dev-topic2 110 1553678915
prefix.graphite.kafka_cluster_1.KF.production-consumer-1.prod-topic1 0 1553678915
prefix.graphite.kafka_cluster_1.KF.production-consumer-2.prod-topic2 0 1553678915
prefix.graphite.kafka_cluster_2.KF.test-consumer-1.test-topic1 1111 1553678915
prefix.graphite.kafka_cluster_2.KF.test-consumer-1.test-topic2 2222 1553678915
...

Configuration

Before starting you need to open api in kafka-manager application.conf (for more detail see https://github.com/yahoo/kafka-manager/blob/master/conf/application.conf#L65):

basicAuthentication.excluded=["/api/health","/api/status/.*"] # ping the health of your instance without authentification

About

Simple parser kafka consumer lag metrics from kafka-manager api and send to graphite

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages