mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/promethues-redis-exporter] Add target labels (#18818)
Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
0908c6142a
commit
67cd6e8c8b
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
appVersion: 1.0.4
|
||||
description: Prometheus exporter for Redis metrics
|
||||
name: prometheus-redis-exporter
|
||||
version: 3.1.0
|
||||
version: 3.2.0
|
||||
home: https://github.com/oliver006/redis_exporter
|
||||
sources:
|
||||
- https://github.com/oliver006/redis_exporter
|
||||
|
||||
@@ -66,6 +66,7 @@ The following table lists the configurable parameters and their default values.
|
||||
| `serviceMonitor.telemetryPath` | Path to redis-exporter telemtery-path | |
|
||||
| `serviceMonitor.labels` | Labels for the servicemonitor passed to Prometheus Operator | `{}` |
|
||||
| `serviceMonitor.timeout` | Timeout after which the scrape is ended | |
|
||||
| `serviceMonitor.targetLabels` | Set of labels to transfer on the Kubernetes Service onto the target. | |
|
||||
| `script.configmap` | Let you run a custom lua script from a configmap. The corresponding environment variable `REDIS_EXPORTER_SCRIPT` will be set automatically ||
|
||||
| `script.keyname` | Name of the key inside configmap which contains your script ||
|
||||
|
||||
|
||||
@@ -31,5 +31,11 @@ spec:
|
||||
matchLabels:
|
||||
app: {{ template "prometheus-redis-exporter.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
{{- if .Values.serviceMonitor.targetLabels }}
|
||||
{{- range .Values.serviceMonitor.targetLabels }}
|
||||
targetLabels:
|
||||
- {{ . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -51,6 +51,8 @@ serviceMonitor:
|
||||
# labels:
|
||||
# Set timeout for scrape
|
||||
# timeout: 10s
|
||||
# Set of labels to transfer on the Kubernetes Service onto the target.
|
||||
# targetLabels: []
|
||||
|
||||
# Used to mount a LUA-Script via config map and use it for metrics-collection
|
||||
# script:
|
||||
|
||||
Reference in New Issue
Block a user