Telefonica / prometheus-kafka-adapter

Use Kafka as a remote storage database for Prometheus (remote write only)
Apache License 2.0
364 stars 135 forks source link

Error while trying to connect to kafka cluster #94

Closed GLucaDEV closed 2 years ago

GLucaDEV commented 2 years ago

Hello mates,

I am trying to connect to my kafka cluster. The readme states, that the default to use is just "kafka:9092", if I do that, I am getting following error message:

"| %3|1650632487.512|FAIL|rdkafka#producer-1| [thrd:localhost:9092/1]: localhost:9092/1: Connect to ipv4#127.0.0.1:9092 failed: Connection refused (after 0ms in state CONNECT, 1 identical error(s) suppressed)"

If I try to use http, I am getting following error: parse error: unsupported protocol "HTTP"

could someone help me to get it right? This is my compose for the adapter:

prom-kafka-adapter: image: telefonica/prometheus-kafka-adapter:1.8.0 container_name: "prom-kafka-adapter" depends_on:

Cheers