Plugin:Write Kafka

From collectd Wiki
Jump to: navigation, search
Write Kafka plugin
Type: write
Callbacks: config, write
Status: supported
First version: 5.5
Copyright: 2014 Pierre-Yves Ritschard
License: MIT license
Manpage: collectd.conf(5)
List of Plugins

The Write Kafka plugin sends metrics to Apache Kafka, a distributed message bus.

The data sent can be formatted in three different ways:

  • PUTVAL commands, one line per metric.
  • collectd's standard JSON format.
  • Graphite's ASCII format.


LoadPlugin "write_kafka"
<Plugin write_kafka>
  Property "" "localhost:9092"
  <Topic "mytopic">
    Format JSON

This will register a write callback with the name write_kafka/mytopic.


  • librdkafka
  • pthread
  • zlib

See also