pingles / kafka-riemann-reporter

Report Kafka metrics to Riemann
Other
12 stars 5 forks source link

Kafka Riemann Reporter

Kafka includes support for automatically reporting various metrics (messages, bytes per topic etc.) in it's kafka.metrics.KafkaCSVMetricsReporter. This library provides an alternative which creates Riemann events.

Build Status

Using

Build the JAR and copy it to your Kafka install's ./libs directory.

$ mvn package
$ cp target/kafka-riemann-reporter-0.1-SNAPSHOT-jar-with-dependencies.jar $KAFKA_HOME/libs

Connecting directly to Riemann

You can publish metrics directly to a running Riemann service; ensure the following is in your server.properties:

kafka.metrics.polling.interval.secs=5
kafka.metrics.reporters=org.pingles.kafka.KafkaRiemannReporter
kafka.riemann.metrics.reporter.enabled=true
kafka.riemann.metrics.reporter.publisher=riemann
kafka.riemann.metrics.reporter.publisher.host=127.0.0.1
kafka.riemann.metrics.reporter.publisher.port=5555

Sending Riemann events via. Kafka

Alternatively, you can create Riemann event messages and push them to a Kafka topic. Set the following in your server.properties:

kafka.metrics.polling.interval.secs=5
kafka.metrics.reporters=org.pingles.kafka.KafkaRiemannReporter
kafka.riemann.metrics.reporter.enabled=true
kafka.riemann.metrics.reporter.publisher=kafka
kafka.riemann.metrics.reporter.publisher.topic=riemann_event