Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Simple Kafka Consumer Lag metric reporter for telegraf with Burrow

License

Notifications You must be signed in to change notification settings

jongho/kafka-burrow-telegraf-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kafka-burrow-telegraf-reporter

Simple Kafka Consumer Lag metric reporter for telegraf with Burrow


Do not use this! Use Telegraf plugin for Burrow!


Parses Kafka Consumer Lag metrics exposed via burrow and converts them to a set of InfluxDB Line protocol metrics.

This code was written based on kafka_jolokia_reporter.py (https://github.com/paksu/kafka-jolokia-telegraf-collector)

Currently supports at least Kafka 0.10.2 and Burrow (https://github.com/linkedin/Burrow 2017-03-07 commit)

Requirements

Install and configure burrow to expose Kafka Consumer Lag metrics.

Usage

How to run the script

python kafka_burrow_reporter.py [--burrow-host] [--burrow-port]

  • --burrow-host defaults to localhost
  • --burrow-port defaults to 8000

Example: python kafka_burrow_reporter.py --burrow-host=localhost --burrow-port=8000

Configure script to pass metrics to telegraf

The collector script works with Telegraf exec plugin.

Example configuration

[[inputs.exec]]
    commands = ["python /path/to/kafka_burrow_reporter.py"]
    data_format = "influx"

About

Simple Kafka Consumer Lag metric reporter for telegraf with Burrow

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages