Go to file
R. Tyler Croy 39db2912ad
Update the build script to be more explicity about cleaning and running default tasks
Giving this another try with an auto-deploy
2015-07-04 14:27:46 -07:00
gradle/wrapper Use Gradle 2.4 for future builds 2015-07-04 14:06:24 -07:00
src Catch and log exceptions coming from the dumpMetadata() call 2015-03-22 11:08:40 -07:00
.gitignore Initial commit 2015-01-09 15:40:46 -08:00
.travis.yml Update the build script to be more explicity about cleaning and running default tasks 2015-07-04 14:27:46 -07:00
LICENSE.md Add the MIT license 2015-01-09 15:57:05 -08:00
README.md Update the readme with release notes 2015-07-04 14:12:27 -07:00
build.gradle Update the build script to be more explicity about cleaning and running default tasks 2015-07-04 14:27:46 -07:00
gradle.properties Add support for automatically publishing to Bintray when a build succeeds 2015-07-04 13:40:25 -07:00
gradlew Initial commit 2015-01-09 15:40:46 -08:00
gradlew.bat Initial commit 2015-01-09 15:40:46 -08:00

README.md

Verspätung

BuildStatus

Download

Verspätung is a small utility which aims to help identify delay of Kafka consumers.

Verspätung monitors the topics and their latest offsets by talking to Kafka, it will also keep track of how far along consumers are by monitoring the offsets that they have committed to Zookeeper. Using both of these pieces of information, Verspätung computs the delta for each of the consumer groups and reports it to statsd.

Using

% java -jar verspaetung-*-all.jar --help
usage: verspaetung
 -H,--statsd-host <STATSD>   Hostname for a statsd instance (defaults to
                             localhost)
 -n,--dry-run                Disable reporting to a statsd host
 -p,--statsd-port <PORT>     Port for the statsd instance (defaults to
                             8125)
 -s,--storm                  Watch Storm KafkaSpout offsets (under
                             /kafka_spout)
 -z,--zookeeper <HOSTS>      Comma separated list of Zookeeper hosts (e.g.
                             localhost:2181)

Running Verspätung is rather easy, by default the daemon will monitor the standard Kafka high-level consumer offset path of /consumers and start reporting deltas automatically.

Hacking

  • Running tests: ./gradlew check
  • Running the app locally: ./gradlew run -PzookeeperHosts=localhost:2181
  • Building the app for distribution: ./gradlew assemble

Releasing

This is mostly meant for the developer team, but currently releases can be produced by simply pushing a Git tag to this GitHub repository. This will cause Travis CI to build and test the tag, which if it is successful, will automatically publish to Bintray.