mirror of
https://github.com/h44z/wg-portal
synced 2025-06-26 18:16:21 +00:00
Set default scrape interval
This commit is contained in:
parent
ea1a0e0bbf
commit
be762de5c1
@ -110,7 +110,7 @@ The [Values](#values) section lists the parameters that can be configured during
|
|||||||
| monitoring.kind | string | `"PodMonitor"` | Kind of the Prometheus resource. Could be `PodMonitor` or `ServiceMonitor`. |
|
| monitoring.kind | string | `"PodMonitor"` | Kind of the Prometheus resource. Could be `PodMonitor` or `ServiceMonitor`. |
|
||||||
| monitoring.labels | object | `{}` | Resource labels. |
|
| monitoring.labels | object | `{}` | Resource labels. |
|
||||||
| monitoring.annotations | object | `{}` | Resource annotations. |
|
| monitoring.annotations | object | `{}` | Resource annotations. |
|
||||||
| monitoring.interval | string | `""` | Interval at which metrics should be scraped. If not specified Prometheus' global scrape interval is used. |
|
| monitoring.interval | string | `1m` | Interval at which metrics should be scraped. If not specified `config.statistics.data_collection_interval` interval is used. |
|
||||||
| monitoring.metricRelabelings | list | `[]` | Relabelings to samples before ingestion. |
|
| monitoring.metricRelabelings | list | `[]` | Relabelings to samples before ingestion. |
|
||||||
| monitoring.relabelings | list | `[]` | Relabelings to samples before scraping. |
|
| monitoring.relabelings | list | `[]` | Relabelings to samples before scraping. |
|
||||||
| monitoring.scrapeTimeout | string | `""` | Timeout after which the scrape is ended If not specified, the Prometheus global scrape interval is used. |
|
| monitoring.scrapeTimeout | string | `""` | Timeout after which the scrape is ended If not specified, the Prometheus global scrape interval is used. |
|
||||||
|
@ -19,9 +19,7 @@ spec:
|
|||||||
{{ $endpointsKey }}:
|
{{ $endpointsKey }}:
|
||||||
- port: metrics
|
- port: metrics
|
||||||
path: /metrics
|
path: /metrics
|
||||||
{{- with .interval }}
|
interval: {{ coalesce .interval ($.Values.config.statistics).data_collection_interval "1m" }}
|
||||||
interval: {{ . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .metricRelabelings }}
|
{{- with .metricRelabelings }}
|
||||||
metricRelabelings: {{- toYaml . | nindent 8 }}
|
metricRelabelings: {{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -218,7 +218,8 @@ monitoring:
|
|||||||
labels: {}
|
labels: {}
|
||||||
# -- Resource annotations.
|
# -- Resource annotations.
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# -- Interval at which metrics should be scraped. If not specified Prometheus' global scrape interval is used.
|
# -- Interval at which metrics should be scraped. If not specified `config.statistics.data_collection_interval` interval is used.
|
||||||
|
# @default -- `1m`
|
||||||
interval: ''
|
interval: ''
|
||||||
# -- Relabelings to samples before ingestion.
|
# -- Relabelings to samples before ingestion.
|
||||||
metricRelabelings: []
|
metricRelabelings: []
|
||||||
|
Loading…
Reference in New Issue
Block a user