title: Kafka on Kubernetes using Strimzi : monitoring/exposing all JMX metrics to prometheus
body: <p>I am running kafka on Kubernetes using the Strimzi operator. For monitoring I am using Prometheus and I followed the installation guide as described in Strimzi deployment guide.</p>
  <p><a href="https://strimzi.io/docs/operators/master/deploying.html" rel="nofollow noreferrer">https://strimzi.io/docs/operators/master/deploying.html</a></p>
  <p>For the Kafka cluster deployment I used the following template from strimzi repository. <a href="https://github.com/strimzi/strimzi-kafka-operator/blob/master/examples/metrics/kafka-metrics.yaml" rel="nofollow noreferrer">https://github.com/strimzi/strimzi-kafka-operator/blob/master/examples/metrics/kafka-metrics.yaml</a>  . The metrics  to be exposed to Prometheus are defined in a configmap in the same file.</p>
  <p>My question  is that if I want <strong>Prometheus to scrape all the JMX metrics from Kafka</strong>; Is there any ready JMX configuration file  to pass to the configmap instead of the current one. <em>Please note that I am particularly interested in consumer group metrics (rebalance-latency-avg, rebalance-rate-per-hour, etc…).</em></p>
  <p>Does monitoring kafka through JMX/prometheus cause any performance degradation to Kafka?</p>