Comments (9)
Yes, the kube-prometheus-stack-operator is running in version v0.71.2 in the cluster.
from helm-charts.
Hi,
I am experiencing the same issue but while using Prometheus community Helm chart:
│ Error: failed to create resource: ServiceMonitor.monitoring.coreos.com "prometheus-exporter" is invalid: spec.endpoints: Required value
The result is that the pod is in a CrashLoopBackOff:
prometheus-exporter-f4dc7988f-dmf2d 0/1 CrashLoopBackOff 4 (25s ago) 117s
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
from helm-charts.
Do you have the Prometheus operator running in your cluster?
from helm-charts.
This is unusual, I'm unable to reproduce the problem. It seems to be working fine without any issues.
Perhaps we should consider adding the endpoint here just to be cautious.
from helm-charts.
Yes it pretty much looks the same. I'm also using the Prometheus community helm chart, especially the prometheus-community/kube-prometheus-stack.
from helm-charts.
I have also encountered this issue:
Error: failed to create resource: ServiceMonitor.monitoring.coreos.com "prometheus-exporter" is invalid: spec.endpoints: Required value
I agree with @dwertent suggestion that the spec.endpoints might need to be added here.
from helm-charts.
What's the workaround?
from helm-charts.
I will look into this today :)
from helm-charts.
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).
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: prometheus-exporter
name: kubescape
namespace: kubescape
spec:
endpoints:
- interval: 30s
targetPort: 8080
path: /metrics
namespaceSelector:
matchNames:
- kubescape
selector:
matchLabels:
app: prometheus-exporter
from helm-charts.
Related Issues (20)
- kubescape-operator 1.15.x fails when deployed with ArgoCD HOT 1
- be able to set labels for ServiceMonitor
- Control C-0004 fails on all kubescape resources
- Cannot change the default "kubescape" namespace name
- Missing requests/limits for service-discovery Job HOT 1
- Use external otelCollector HOT 1
- Kubescape helm install fails | kollector-0 pod crashes HOT 1
- Use PriorityClass HOT 1
- Problem with upgrading to v1.16.1(7) HOT 6
- Storage retention HOT 7
- Cannot Pull Helm Template HOT 10
- The `node-agent` is repeatedly crashing with a `CrashLoopBackOff` error : cannot create bpf perf link HOT 3
- storage pod failing with error HOT 2
- Supply exceptions json in helm chart HOT 1
- For some reason, the UI is showing that I have an older version chart HOT 8
- Storage apiservice attempts to call APIs that were removed in Kubernetes 1.27 HOT 2
- Invalid warnings and IRSA not working with AWS EKS
- Allow hostNetwork for storage deployment
- Configure Host Scanner requests and limits
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.