danielqsj / kafka_exporter

Kafka exporter for Prometheus
Apache License 2.0
2.16k stars 607 forks source link

Kafka cluster running in k8s #164

Open rjshrjndrn opened 4 years ago

rjshrjndrn commented 4 years ago

Hi, Thanks for this awesome exporter. Helps so much. I'm running a kafka-cluster in Kubernetes with 3 brokers. But in the exporter config for the endpoint, which service should I give,

  1. headless: - which will give all ips but no port, or
  2. service type LB, which will loadbalance the query with backend pool, which I don't thinik will be good for monitoring. Please suggest.
ssx1235690 commented 4 years ago

choose 1

rjshrjndrn commented 4 years ago

what about the port information ? ASFAIK we need to give --kafka.server=ip:port

s7an-it commented 4 years ago

Same question.