Open freeshow opened 12 months ago
same question
the same question
+1
This worked for me:
sasl: enabled: true handshake: true username: **** password: **** mechanism: "scram-sha256"
tls: enabled: true insecureSkipTlsVerify: true caFile: "" certFile: "" keyFile: ""
Ref.: https://github.com/danielqsj/kafka_exporter/issues/116#issuecomment-559108062
getting this same error. Does any one know the solution?
Edit: Found the solution. I think kafka exporter has issue with identifying the version of kafka server. So when I added version flag in exporter ./kafka_exporter --kafka.server=localhost:9092 --kafka.version=1.1.0
it worked just fine.
having same error with kafka 3.6.1 and kraft:
1 kafka_exporter.go:901] Error Init Kafka Client: kafka: client has run out of available brokers to talk to: 3 errors occurred:
i dont have any authentication or tls mechanism
the same question
It looks to me (just installed it now) that the kafka-exporter needs to see the kafka server running (i.e. depends on, and need to wait a while until the kafka server is operational and 'open for buisness'.
I tried it using docker compose to enforce the dependency, and only when manualy starting the exporter later, it worked ok.
In case it helps anybody, this worked for me (SASL/PLAIN, no TLS):
./kafka_exporter --kafka.server="kafka.myns.svc.cluster.local:9092" --sasl.enabled --sasl.mechanism="plain" --sasl.username="myuser" --sasl.password="mypass"
kafka version : kafka_2.11-0.11.0.0 kafka_exporter version: 1.7.0
when i execute:
./kafka_exporter --kafka.server=xxxxx:9092
error: