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
789 stars 846 forks source link

monitor can't get metrics on prometheus #554

Open thanhlangso opened 3 years ago

thanhlangso commented 3 years ago

I have deploy this helm chart on my k8s on-premise. for kafka, I have setup done and working fine. But I can't get monitor metrics with prometheus and grafana. I setup kafka with namespace is: kafka and prometheus & grafana namespace is: monitoring But I can't get metrics. Can you help me?

Jefski14 commented 2 years ago

Hi, I had the same problem. How did you set up your Prometheus? I'm using the kube-prometheus-stack and realized, that prometheus is not scraping the kafka metrics by default, because there is no service monitor. https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#prometheusioscrape

I fixed it in my case by adding a service monitor for the services I wanted to be scraped. (kafka and zookeepers)