confluentinc / cp-helm-charts

The Confluent Platform Helm charts enable you to deploy Confluent Platform services on Kubernetes for development, test, and proof of concept environments.
https://cnfl.io/getting-started-kafka-kubernetes
Apache License 2.0
788 stars 847 forks source link

Prometheus scrape config that makes the dashboard work is missing #237

Open yakneens opened 5 years ago

yakneens commented 5 years ago

I've been trying to follow the documentation to get kafka monitoring via prometheus and grafana working. Kafka is working, prometheus is working, grafana is working, but the prometheus configurations that actually scrape the kafka metrics such that the grafana dashboard would work are missing. Without the scrape configuration prometheus does not scrape the JMX metrics exposed by kafka, zookeeper, etc.

i-doit181 commented 5 years ago

Hi we use the prometheus chart from the stable repository (stable/prometheus). The image jimmidyson/configmap-reload is used there to create dynamically the scrape configuration. The annotation "prometheus/scrape: true" is already set by this chart. For example: https://github.com/confluentinc/cp-helm-charts/blob/master/charts/cp-kafka/templates/statefulset.yaml#L26

anragen commented 3 years ago

annotation is not work on prometheus. Only servicemonitor