question regarding kafka-exporter

24 views
Skip to first unread message

rs vas

unread,
Jun 27, 2020, 3:38:30 AM6/27/20
to Prometheus Users
When we run the Kafka Exporter, we are running as
kafka_exporter --kafka.server=kafka_cluster1:9092 --kafka.server=another_kafka_cluster:9092
When we try to pull two kafka cluster metrics using one process, it is only returning one and ignoring another. My understanding is one kafka exporter can only scrape metrics from one cluster and we can-not use one kafka exporter service to scrape multiple kafka clusters.
Any expert input on this! or can you please let me know if my understanding is correct?

Brian Candler

unread,
Jun 27, 2020, 10:30:55 AM6/27/20
to Prometheus Users
I think multiple --kafka.server flags are to let you select multiple bootstrap nodes in the *same* kafka cluster.  This allows it to be resilient at startup in the case that one node is down.

For multiple kafka clusters, run multiple instances of the exporter.
Reply all
Reply to author
Forward
0 new messages