Go to file
R. Tyler Croy dc33298435 Groovy's getStrings() method with string interpolation doesn't do what you think it does
groovy:000> user = "Ron"
    ===> Ron
    groovy:000> "hello ${user}"
    ===> hello Ron
    groovy:000> "hello ${user}".getStrings()
    ===> [hello , ]
    groovy:000> "hello ${user}".toString()
    ===> hello Ron

Fixes #24
2015-03-20 15:13:40 -07:00
gradle/wrapper Initial commit 2015-01-09 15:40:46 -08:00
src Groovy's getStrings() method with string interpolation doesn't do what you think it does 2015-03-20 15:13:40 -07:00
.gitignore Initial commit 2015-01-09 15:40:46 -08:00
.travis.yml Add support for TravisCI 2015-01-19 11:46:57 -08:00
LICENSE.md Add the MIT license 2015-01-09 15:57:05 -08:00
README.md Add some notes about using Verspaetung 2015-01-28 03:33:52 -08:00
build.gradle Groovy's getStrings() method with string interpolation doesn't do what you think it does 2015-03-20 15:13:40 -07:00
gradle.properties Add some simple command line overrides for ZK and statsd hosts 2015-01-26 06:15:35 -08: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-0.1.4-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 shadowJar