Skip to content
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

Prometheus Operator invalid configuration #182

Closed
98jan opened this issue Nov 3, 2024 · 1 comment
Closed

Prometheus Operator invalid configuration #182

98jan opened this issue Nov 3, 2024 · 1 comment
Labels
defect Something isn't working

Comments

@98jan
Copy link

98jan commented Nov 3, 2024

Hi,

I installed the helm chart of dependency-track in my running Kubernetes Cluster with a preconfiugred kube-prometheus-stack and the serviceMonitorof dependency-track is rejected, because the scapeTimeout is higher then the scrapeInterval, see following log message:

ts=2024-11-03T14:19:26.716949381Z level=info caller=/home/runner/go/pkg/mod/k8s.io/[email protected]/tools/record/event.go:389 msg="Event occurred" object.name=dependency-track-api-server object.namespace=dependency-track fieldPath="" kind=ServiceMonitor apiVersion=monitoring.coreos.com/v1 type=Warning reason=InvalidConfiguration message="ServiceMonitor dependency-track-api-server was rejected due to invalid configuration: scrapeTimeout \"30s\" greater than scrapeInterval \"15s\""

I would propose to either increase scrape interval to 30s or reduce scrapeTimeout to 15s that no issues with the prometheus-operator arise.

@nscuro nscuro added the defect Something isn't working label Dec 10, 2024
@nscuro
Copy link
Member

nscuro commented Dec 10, 2024

Fixed via #181

@nscuro nscuro closed this as completed Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants