Add scrape interval and timeout for cadvisor service monitor (#120)
This commit is contained in:
parent
16cde256bc
commit
6f462b1c1f
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
description: A chart for a Cadvisor deployment
|
description: A chart for a Cadvisor deployment
|
||||||
name: cadvisor
|
name: cadvisor
|
||||||
version: 2.2.1
|
version: 2.2.2
|
||||||
appVersion: 0.44.0
|
appVersion: 0.44.0
|
||||||
home: https://github.com/google/cadvisor
|
home: https://github.com/google/cadvisor
|
||||||
sources:
|
sources:
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,8 @@ The following table lists the configurable parameters of the cAdvisor chart and
|
||||||
| `podSecurityContext.privileged`| set podSecurityContext privileged to true | `false` |
|
| `podSecurityContext.privileged`| set podSecurityContext privileged to true | `false` |
|
||||||
| `metrics.enabled` | create ServiceMonitor CR for Prometheus operator | `false` |
|
| `metrics.enabled` | create ServiceMonitor CR for Prometheus operator | `false` |
|
||||||
| `metrics.relabelings` | add pre-scraping relabeling to ServiceMonitor | `[]` |
|
| `metrics.relabelings` | add pre-scraping relabeling to ServiceMonitor | `[]` |
|
||||||
|
| `metrics.interval` | scraping interval for the ServiceMonitor | `30s` |
|
||||||
|
| `metrics.scrapeTimeout` | scraping timeout for the ServiceMonitor | `30s` |
|
||||||
| `metrics.metricsRelabelings` | add pre-ingestion relabeling to ServiceMonitor | `[]` |
|
| `metrics.metricsRelabelings` | add pre-ingestion relabeling to ServiceMonitor | `[]` |
|
||||||
|
|
||||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ spec:
|
||||||
- {{ .Release.Namespace }}
|
- {{ .Release.Namespace }}
|
||||||
endpoints:
|
endpoints:
|
||||||
- path: /metrics
|
- path: /metrics
|
||||||
|
interval: {{ .Values.metrics.interval }}
|
||||||
|
scrapeTimeout: {{ .Values.metrics.scrapeTimeout }}
|
||||||
port: http
|
port: http
|
||||||
{{- if .Values.metrics.relabelings }}
|
{{- if .Values.metrics.relabelings }}
|
||||||
relabelings:
|
relabelings:
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,8 @@ affinity: {}
|
||||||
# This will create a ServiceMonitor Custom Resource indicating the prometheus operator what to scrape.
|
# This will create a ServiceMonitor Custom Resource indicating the prometheus operator what to scrape.
|
||||||
metrics:
|
metrics:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
interval: 30s
|
||||||
|
scrapeTimeout: 30s
|
||||||
# This will allow you to specify relabelings on the metrics before ingestion. E.g. to use the kubernetes monitoring
|
# This will allow you to specify relabelings on the metrics before ingestion. E.g. to use the kubernetes monitoring
|
||||||
# mixin with this chart set metrics.enabled above to true and use:
|
# mixin with this chart set metrics.enabled above to true and use:
|
||||||
# relabelings:
|
# relabelings:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue