allegro/kafka-offset-monitor-graphite

Name: kafka-offset-monitor-graphite

Owner: Allegro Tech

Description: Graphite reporter for Kafka Offset Monitor.

Created: 2015-07-08 14:32:12.0

Updated: 2018-05-21 14:41:45.0

Pushed: 2015-09-23 20:49:37.0

Homepage: null

Size: 148

Language: Scala

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

kafka-offset-monitor-graphite

Plugin to KafkaOffsetMonitor tool reporting offset data to graphite via dropwizard metrics.

Building It

Currently KafkaOffsetMonitor is not available via public artifact repository, so before we build the plugin we need to build KafkaOffsetMonitor and publish it to maven local repo:

publishM2

Now we can build the plugin:

assembly

Running It

Check how to run KafkaOffsetMonitor and modify the command by adding a plugin assembly jar file to the classpath, and put graphite configuration properties into a pluginsArgs argument.

See original KafkaOffsetMonitor example command modified with graphite reporter plugin usage:

 -cp "KafkaOffsetMonitor-assembly-0.3.0-SNAPSHOT.jar:kafka-offset-monitor-graphite-assembly-0.1.0-SNAPSHOT.jar" \
 com.quantifind.kafka.offsetapp.OffsetGetterWeb \
 --zk zk-server1,zk-server2 \
 --port 8080 \
 --refresh 10.seconds \
 --retain 2.days \
 --pluginsArgs graphiteHost=graphite.host,graphitePort=2003,graphitePrefix=stats.kafka.offset_monitor

The pluginArgs used by kafka-offset-monitor-graphite are:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.