docs(outputs.kafka): specify broker behavior (#12161)

This commit is contained in:
Joshua Powers 2022-11-08 14:26:24 -07:00 committed by GitHub
parent 6a29dcba45
commit 07345e82f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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"

View File

@ -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"