kafka

Reference for the `kafka` adapter.

kafka · adapter · run nanook doc kafka for the same content in your terminal.

Publishes metrics as JSON records to an Apache Kafka topic.

Options

OptionTypeDefaultDescription
brokersstringrequiredcomma-separated list of broker host:port
topicstringrequiredtarget topic name
keystringoptional record key

Examples

Single broker

[[adapters]]
kind = "kafka"
[adapters.opts]
brokers = "localhost:9092"
topic = "nanook.metrics"

Cluster with record key

[[adapters]]
kind = "kafka"
[adapters.opts]
brokers = "kafka-1:9092,kafka-2:9092"
topic = "nanook.metrics"
key = "{{ source }}"