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

feat(serviceMonitor): Added option to customize interval and scrapeTi… #319

Merged
merged 3 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ spec:
endpoints:
- port: http
path: /v1/metrics
interval: 200s
scrapeTimeout: 150s
interval: {{ .Values.kubescape.serviceMonitor.interval }}
scrapeTimeout: {{ .Values.kubescape.serviceMonitor.scrapeTimeout }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/kubescape-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ kubescape:
# -- enable/disable service monitor for prometheus (operator) integration
enabled: false

# -- Customize prometheus interval and scrapeTimeout
interval: 200s
scrapeTimeout: 150s

# If needed the service monitor can be deployed to a different namespace than the one kubescape is in
#namespace: my-namespace

Expand Down