Redis metrics template - REDIS_FILE variable deprecation
Summary
The Redis subchart used in this chart is not ready to work without the environment variable REDIS_FILE
.
Steps to reproduce
Deploying this subchart with the default values (as shown in the following link: https://gitlab.com/charts/gitlab/blob/master/charts/redis/values.yaml#L40), makes the Metrics exporter not to work.
Configuration used
The default one: https://gitlab.com/charts/gitlab/blob/master/charts/redis/values.yaml#L40
metrics:
enabled: true
port: 9121
image: oliver006/redis_exporter
imageTag: latest
imagePullPolicy: IfNotPresent
resources: {}
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9121"
Current behavior
Using the latest image (containing version 1.0.3 of the prometheus metrics exporter) causes no server metrics to be exposed.
Expected behavior
What I hope is to be able to consult Redis server metrics from prometheus/grafana. If you want to maintain the way this subchart is deployed, you must set the image version of the container to version 0.34.1
Versions
- Chart: 2.0.2
- Platform:
- Cloud: EKS
- Kubernetes: (
kubectl version
)- Client: v1.15.0
- Server: v1.11.8-eks-7c34c0
- Helm: (
helm version
)- Client: v2.14.1
- Server: v2.13.0
Relevant logs
No metrics in prometheus server.
Additional comment
If you let me provide a contingent solution...
I would fix the version of the image of the container to: v0.34.1-alpine
in the default vars (https://gitlab.com/charts/gitlab/blob/master/charts/redis/values.yaml#L40).
partial configuration yaml:
redis:
enabled: true
image:
repository: redis
tag: '3.2.12'
pullPolicy: Always
metrics:
enabled: true
port: 9121
image: oliver006/redis_exporter
imageTag: v0.34.1-alpine
imagePullPolicy: Always
At the same time, it is necessary to adapt the chart to put the new environment variables required by the metrics exporter https://github.com/oliver006/redis_exporter/tree/v1.0.3#flags
Thanks!