kafka-statsd-1.0.0.jar
jar using mvn package
.kafka-statsd-1.0.0.jar
to the libs/
directory of your kafka broker installationEdit the server.properties
file of your installation, activate the reporter by setting:
kafka.metrics.reporters=com.myfitnesspal.kafka.KafkaStatsdMetricsReporter[,kafka.metrics.KafkaCSVMetricsReporter[,....]]
kafka.statsd.metrics.reporter.enabled=true
Here is a list of default properties used:
kafka.statsd.metrics.host=localhost
kafka.statsd.metrics.port=8125
kafka.statsd.metrics.group=kafka
# This can be use to exclude some metrics from statsd
# since kafka has quite a lot of metrics, it is useful
# if you have many topics/partitions.
kafka.statsd.metrics.exclude.regex=<not set>
Simply build the jar and publish it to your maven internal repository (this package is not published to any public repositories unfortunately).