-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[kube-prometheus-stack] ServiceMonitor of bitnami kafka not added to scrape configs #3487
Comments
A solution is to explicit set a But in my understanding when I set Do I misunderstand something? |
Is it possible that you specified |
You are right, my spec is wrong. With this
And this
Then I only have the But I struggle to get it running in two different namespaces, but this is an issue related to create the right Closing issue |
Hi @sebastianlutter,
I have the same problem where Prometheus cannot discover podMonitor or serviceMonitor from other namespaces. Are you on EKS too? How did you fix it? |
Describe the bug a clear and concise description of what the bug is.
ServiceMonitor
created by bitnami kafka chart is not recognised byprometheus-operator
. The kafka metrics endpoint is not added to the list of scraping targets in prometheus.What's your helm version?
version.BuildInfo{Version:"v3.12.0", GitCommit:"c9f554d75773799f72ceef38c51210f1842a1dea", GitTreeState:"clean", GoVersion:"go1.20.3"}
What's your kubectl version?
Client Version: v1.27.2 Kustomize Version: v5.0.1 Server Version: v1.26.3
Which chart?
https://artifacthub.io/packages/helm/prometheus-community/kube-prometheus-stack
What's the chart version?
46.8.0
What happened?
monitoring
for both helm chartskube-prometheus-stack
with helm using this values.yamlkafka
helm chart using this values.yamlServiceMonitor
instances created by thekube-prometheus-stack
are found and added to scrape targetsServiceMonitor
instances created by thekafka
chart are not found and not added to scrape targetsWhat you expected to happen?
The
ServiceMonitor
created by thekafkas
should be discovered by theprometheus-operator
and thekafka-bitnami-metrics
service should be added as scrape target in the 'prometheus.yaml'How to reproduce it?
Find a minimal example with all details that reproduces the issue here:
Enter the changed values of values.yaml?
Enter the command that you execute and failing/misfunctioning.
it is a Runtime/Configuration problem, no single command issue
Anything else we need to know?
I tried to find out why the
ServiceMonitor
created bykafka
helm chart is not found using the following resources:Everything looks fine, cannot find a reason why it is not picked up or find any logs or events why the
prometheus-operator
ignores theServiceMonitor
created bykafka
. Please helpThe text was updated successfully, but these errors were encountered: