Skip to content

Commit

Permalink
Merge pull request #120 from rashid4lyf/feature/add_scrape_timeout_in…
Browse files Browse the repository at this point in the history
…terval

support for dynamic scrapeTimeout and interval for ServiceMonitor
  • Loading branch information
weeco authored Oct 11, 2021
2 parents af4fb49 + 89ea1c6 commit 3f84442
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/kminion/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ spec:
- port: metrics
path: /metrics
honorLabels: {{ .Values.serviceMonitor.honorLabels }}
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
interval: {{ .Values.serviceMonitor.interval }}
{{- if .Values.serviceMonitor.targetLabels}}
targetLabels:
{{- toYaml .Values.serviceMonitor.targetLabels | nindent 4}}
Expand Down
2 changes: 2 additions & 0 deletions charts/kminion/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ serviceMonitor:
create: false
additionalLabels: {}
honorLabels: false
scrapeTimeout: 10s
interval: 15s

deployment:
volumes:
Expand Down

0 comments on commit 3f84442

Please sign in to comment.