danielqsj / kafka_exporter

Kafka exporter for Prometheus
Apache License 2.0
2.18k stars 610 forks source link

Failed to connect to broker via HAProxy #288

Open thanhtuan opened 2 years ago

thanhtuan commented 2 years ago

hello, i am having problem connecting with broker. i have 1 haproxy located between kafka and kafka exporter. My config is :

extra_hosts:

kafka exporter calls to port 1038 of haproxy and haproxy will push down to kafka broker :9092 However I am getting the following error:

Why does kafka exporter call in 192.168.x.x:9092 ? it should be 192.168.x.x:1038 ( port haproxy) Or am I misunderstanding the error here. help me

ajin24010 commented 3 months ago

Any fix here?