[telegraf] Error running agent: starting input inputs.kafka_consumer: create consumer: kafka: client has run out of available brokers to talk to: dial tcp: address 10.166.139.204:9092,10.166.139.205:9092,10.166.139.206:9092: too many colons in address


this is my brokers,why is this so?

Helllo @kevin-du,
I believe you need to resolve this issue, you should try specifying each Kafka broker as a separate string in an array. Here’s an example of how you might do this:
toml
[[inputs.kafka_consumer]]
brokers = [“10.166.139.204:9092”, “10.166.139.205:9092”, “10.166.139.206:9092”]

… rest of your configuration …

This way, each broker address is clearly separated and there should be no confusion about where one address ends and the next one begins. After making this change, try running Telegraf again to see if the issue is resolved.

Let me know!