Agent-config.yaml Kafka Brokers

Hi Greetings,

I have installed Grafana agent in ubuntu ec2 instance and trying to scrap logs from Kafka, in agent-config.yaml i have given accurate information of my kafka brokers and authentication.

while executing ./agent-linux-amd64 --config.file=agent-config.yaml i am getting following error.

" level=error msg=“error creating the agent server entrypoint” err=“unable to apply config for loki: unable to create logs instance: failed to make kafka target manager: error creating kafka client: kafka: client has run out of available brokers to talk to”

Kindly advice on the next steps for this issue.