mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
include ServiceMonitor relabelings and metricRelabelings (#16443)
Signed-off-by: Pavel Margolin <pavel@troops.ai>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
e6752a3058
commit
c2774e5f21
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
appVersion: "0.5.0"
|
||||
description: A Helm chart for prometheus cloudwatch-exporter
|
||||
name: prometheus-cloudwatch-exporter
|
||||
version: 0.4.9
|
||||
version: 0.4.10
|
||||
home: https://github.com/prometheus/cloudwatch_exporter
|
||||
sources:
|
||||
- https://github.com/prometheus/cloudwatch_exporter
|
||||
|
||||
@@ -80,6 +80,8 @@ The following table lists the configurable parameters of the Cloudwatch Exporter
|
||||
| `serviceMonitor.telemetryPath` | path to cloudwatch-exporter telemtery-path | |
|
||||
| `serviceMonitor.labels` | labels for the ServiceMonitor passed to Prometheus Operator | `{}` |
|
||||
| `serviceMonitor.timeout` | Timeout after which the scrape is ended | |
|
||||
| `serviceMonitor.relabelings` | RelabelConfigs to apply to samples before scraping. | |
|
||||
| `serviceMonitor.metricRelabelings`| MetricRelabelConfigs to apply to samples before ingestion. | |
|
||||
| `ingress.enabled` | Enables Ingress | `false` |
|
||||
| `ingress.annotations` | Ingress annotations | `{}` |
|
||||
| `ingress.labels` | Custom labels | `{}` |
|
||||
|
||||
@@ -21,6 +21,14 @@ spec:
|
||||
{{- end }}
|
||||
{{- if .Values.serviceMonitor.timeout }}
|
||||
scrapeTimeout: {{ .Values.serviceMonitor.timeout }}
|
||||
{{- end }}
|
||||
{{- if .Values.serviceMonitor.relabelings }}
|
||||
relabelings:
|
||||
{{ toYaml .Values.serviceMonitor.relabelings | indent 6 }}
|
||||
{{- end }}
|
||||
{{- if .Values.serviceMonitor.metricRelabelings }}
|
||||
metricRelabelings:
|
||||
{{ toYaml .Values.serviceMonitor.metricRelabelings | indent 6 }}
|
||||
{{- end }}
|
||||
jobLabel: {{ template "prometheus-cloudwatch-exporter.fullname" . }}
|
||||
namespaceSelector:
|
||||
|
||||
@@ -134,6 +134,17 @@ serviceMonitor:
|
||||
# labels:
|
||||
# Set timeout for scrape
|
||||
# timeout: 10s
|
||||
# Set relabelings for the ServiceMonitor, use to apply to samples before scraping
|
||||
# relabelings: []
|
||||
# Set metricRelabelings for the ServiceMonitor, use to apply to samples for ingestion
|
||||
# metricRelabelings: []
|
||||
#
|
||||
# Example - note the Kubernetes convention of camelCase instead of Prometheus' snake_case
|
||||
# metricRelabelings:
|
||||
# - sourceLabels: [dbinstance_identifier]
|
||||
# action: replace
|
||||
# replacement: mydbname
|
||||
# targetLabel: dbname
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
|
||||
Reference in New Issue
Block a user