To use this Apache Druid extension, include kafka-emitter in the extensions load list.

Introduction

This extension emits Druid metrics to Apache Kafka directly with JSON format.
Currently, Kafka has not only their nice ecosystem but also consumer API readily available. So, If you currently use Kafka, It’s easy to integrate various tool or UI to monitor the status of your Druid cluster with this extension.

Configuration

All the configuration parameters for the Kafka emitter are under druid.emitter.kafka.

propertydescriptionrequired?default
druid.emitter.kafka.bootstrap.serversComma-separated Kafka broker. ([hostname:port],[hostname:port]…)yesnone
druid.emitter.kafka.metric.topicKafka topic name for emitter’s target to emit service metric.yesnone
druid.emitter.kafka.alert.topicKafka topic name for emitter’s target to emit alert.yesnone
druid.emitter.kafka.request.topicKafka topic name for emitter’s target to emit request logs. If left empty then request logs will not be sent to the Kafka topic.nonone
druid.emitter.kafka.producer.configJSON formatted configuration which user want to set additional properties to Kafka producer.nonone
druid.emitter.kafka.clusterNameOptional value to specify name of your druid cluster. It can help make groups in your monitoring environment.nonone

Example

  1. druid.emitter.kafka.bootstrap.servers=hostname1:9092,hostname2:9092
  2. druid.emitter.kafka.metric.topic=druid-metric
  3. druid.emitter.kafka.alert.topic=druid-alert
  4. druid.emitter.kafka.producer.config={"max.block.ms":10000}