Closed tanguynicolas closed 1 year ago
I run the same cmd in windows docker desktop, and have the same error My kafka version is 3.4.0 and the server.properties is default
In this command I specify localhost, which can't work because my container's localhost is taken into account. Sorry for the inconvenience, it's been a long evening.
But problem still persist with kafka:9092
Ok I find the real solution.
Do not put hostname (kafka) below when using multi networks, cause Kafka will resolve it with IP of its own interface in FIRST network (by alphabetic order)
# DON'T USE
KAFKA_CFG_LISTENERS: INSIDE://kafka:9092,OUTSIDE://kafka:9094,CONTROLLER://:9093
# USE
KAFKA_CFG_LISTENERS: INSIDE://:9092,OUTSIDE://:9094,CONTROLLER://:9093
So the problem isn't Kafka Exporter problem.
Hello,
I have a very simple Kafka configuration, but Kafka exporter container fail to connect to it anytimes.
This command works:
kafka-topics.sh --version --bootstrap-server 127.0.0.1:9094
There is my Kafka configuration:
When I run
docker run --rm -p 9308:9308 danielqsj/kafka-exporter --kafka.server=127.0.0.1:9094 --kafka.version=3.4.0
I get:I don't understand why :/ Could you help me?
Thanks for your sources, TN