Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
helm: make scrape timeout configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon committed Nov 7, 2023
1 parent 0eb4197 commit 27ed236
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/extended-ceph-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ _See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command doc
| serviceMonitor.enabled | bool | `false` | Specifies whether a prometheus-operator ServiceMonitor should be created |
| serviceMonitor.namespaceSelector | string | `nil` | |
| serviceMonitor.scrapeInterval | duration | `"30s"` | Interval at which metrics should be scraped |
| serviceMonitor.scrapeTimeout | duration | `"20s"` | Timeout for scraping |
| tolerations | list | `[]` | [Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) |
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
endpoints:
- port: http-metrics
interval: {{ .Values.serviceMonitor.scrapeInterval }}
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
{{- if .Values.serviceMonitor.honorLabels }}
honorLabels: true
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions charts/extended-ceph-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ serviceMonitor:
# any: true
# -- (duration) Interval at which metrics should be scraped
scrapeInterval: 30s
# -- (duration) Timeout for scraping
scrapeTimeout: 20s
# honorLabels: true

prometheusRule:
Expand Down

0 comments on commit 27ed236

Please sign in to comment.