-
Notifications
You must be signed in to change notification settings - Fork 42
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
ServiceMonitor.monitoring.coreos.com "prometheus-exporter" is invalid: spec.endpoints: Required value #390
Comments
Do you have the Prometheus operator running in your cluster? |
Yes, the kube-prometheus-stack-operator is running in version v0.71.2 in the cluster. |
This is unusual, I'm unable to reproduce the problem. It seems to be working fine without any issues. |
Hi, The result is that the pod is in a CrashLoopBackOff: Here is the configuration of the Helm chart: kubescape:
# Enable prometheus pod annotations,to allow your opensource prometheus (not operator) to scrape metrics
prometheusAnnotation:
enabled: true
capabilities:
# Kubescape integration with Prometheus Community Hlem chart
prometheusExporter: enable |
Yes it pretty much looks the same. I'm also using the Prometheus community helm chart, especially the prometheus-community/kube-prometheus-stack. |
What's the workaround? |
I will look into this today :) |
We are experiencing the same problem, we deployed a separate servicemonitor outside of the helm deployment as a workaround. The following ressource definition works for us, depending on how the prometheus instance is configured one might also need to add a label for the prometheus selector (we disabled it completely).
|
@dabo-devconsole @l-spork-cc can you check with the latest chart please? |
Hi @matthyx, |
should be fixed in the next release (probably next week) |
Description
Helm installation fails to deploy the prometheus-exporter ServiceMonitor.
Environment
OS: Ubuntu 22.04 LTS
Version: 3.0.3
Steps To Reproduce
Expected behavior
ServiceMonitor is created
Actual Behavior
ServiceMonitor is not created
Additional context
The template is missing the required "endpoints" specification.
The text was updated successfully, but these errors were encountered: