mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus-redis-exporter]Add redis authoration configuration in chart (#19447)
* Add redis authoration configuration in prometheus-redis-exporter chart Signed-off-by: aixeshunter <aixeshunter@gmail.com> * document all new values in the readme Signed-off-by: aixeshunter <aixeshunter@gmail.com> * Fix READ.md some bugs Signed-off-by: aixeshunter <aixeshunter@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
9b63987092
commit
3dab0ea7e5
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
appVersion: 1.0.4
|
||||
description: Prometheus exporter for Redis metrics
|
||||
name: prometheus-redis-exporter
|
||||
version: 3.2.0
|
||||
version: 3.2.1
|
||||
home: https://github.com/oliver006/redis_exporter
|
||||
sources:
|
||||
- https://github.com/oliver006/redis_exporter
|
||||
|
||||
@@ -69,6 +69,10 @@ The following table lists the configurable parameters and their default values.
|
||||
| `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 ||
|
||||
| `auth.enabled` | Specifies whether redis uses authentication | `false` |
|
||||
| `auth.secret.name` | Name of existing redis secret (ignores redisPassword) ||
|
||||
| `auth.secret.key` | Name of key containing password to be retrieved from the existing secret ||
|
||||
| `auth.redisPassword` | Redis password (when not stored in a secret) ||
|
||||
|
||||
For more information please refer to the [redis_exporter](https://github.com/oliver006/redis_exporter) documentation.
|
||||
|
||||
|
||||
@@ -42,6 +42,17 @@ spec:
|
||||
env:
|
||||
- name: REDIS_ADDR
|
||||
value: {{ .Values.redisAddress }}
|
||||
{{- if .Values.auth.enabled }}
|
||||
- name: REDIS_PASSWORD
|
||||
{{- if .Values.auth.secret.name }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.auth.secret.name }}
|
||||
key: {{ .Values.secret.key }}
|
||||
{{- else }}
|
||||
value: {{ .Values.auth.redisPassword }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.script }}
|
||||
- name: REDIS_EXPORTER_SCRIPT
|
||||
value: /script/script.lua
|
||||
|
||||
@@ -58,3 +58,13 @@ serviceMonitor:
|
||||
# script:
|
||||
# configmap: prometheus-redis-exporter-script
|
||||
# keyname: script
|
||||
|
||||
auth:
|
||||
# Use password authentication
|
||||
enabled: false
|
||||
# Use existing secret (ignores redisPassword)
|
||||
secret:
|
||||
name: ""
|
||||
key: ""
|
||||
# Redis password (when not stored in a secret)
|
||||
redisPassword: ""
|
||||
|
||||
Reference in New Issue
Block a user