From 07345e82f337f86fcb85b769e52c94e05730a164 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Tue, 8 Nov 2022 14:26:24 -0700 Subject: [PATCH] docs(outputs.kafka): specify broker behavior (#12161) --- plugins/outputs/kafka/README.md | 4 ++++ plugins/outputs/kafka/sample.conf | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/plugins/outputs/kafka/README.md b/plugins/outputs/kafka/README.md index d53839b64..387e36840 100644 --- a/plugins/outputs/kafka/README.md +++ b/plugins/outputs/kafka/README.md @@ -18,7 +18,11 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. # Configuration for the Kafka server to send metrics to [[outputs.kafka]] ## URLs of kafka brokers + ## The brokers listed here are used to connect to collect metadata about a + ## cluster. However, once the initial metadata collect is completed, telegraf + ## will communicate solely with the kafka leader and not all defined brokers. brokers = ["localhost:9092"] + ## Kafka topic for producer messages topic = "telegraf" diff --git a/plugins/outputs/kafka/sample.conf b/plugins/outputs/kafka/sample.conf index e1d03b8d7..6b3e40195 100644 --- a/plugins/outputs/kafka/sample.conf +++ b/plugins/outputs/kafka/sample.conf @@ -1,7 +1,11 @@ # Configuration for the Kafka server to send metrics to [[outputs.kafka]] ## URLs of kafka brokers + ## The brokers listed here are used to connect to collect metadata about a + ## cluster. However, once the initial metadata collect is completed, telegraf + ## will communicate solely with the kafka leader and not all defined brokers. brokers = ["localhost:9092"] + ## Kafka topic for producer messages topic = "telegraf"