Skip to content
Florian Forster edited this page Nov 26, 2023 · 1 revision
Name: Write Kafka plugin
Type: write
Callbacks: config, write
Status: supported
FirstVersion: 5.5
Copyright: 2014 Pierre-Yves Ritschard
License: MIT License
Manpage: collectd.conf(5)
See also: 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.

Synopsis

 LoadPlugin "write_kafka"
 <Plugin write_kafka>
   Property "metadata.broker.list" "localhost:9092"
   <Topic "mytopic">
     Format JSON
   </Topic>
 </Plugin>

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

Dependencies

  • librdkafka
  • pthread
  • zlib

See also

Clone this wiki locally