Skip to content

Commit 1414470

Browse files
f9ndrivebyer
andauthored
docs: Add controller metrics guide and Grafana dashboard for Redis Operator (#1438)
* feat(monitoring): expose existing controller metrics via operator pod and add docs/dashboard Signed-off-by: Fatih Sarhan <[email protected]> * docs(metrics): add spacing for improved readability in auto-generated metrics docs Signed-off-by: Fatih Sarhan <[email protected]> * custom port Signed-off-by: yangw <[email protected]> * upgrade Signed-off-by: yangw <[email protected]> --------- Signed-off-by: Fatih Sarhan <[email protected]> Signed-off-by: yangw <[email protected]> Co-authored-by: yangw <[email protected]>
1 parent 2f214a9 commit 1414470

File tree

7 files changed

+949
-1
lines changed

7 files changed

+949
-1
lines changed

charts/redis-operator/Chart.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
apiVersion: v2
3-
version: 0.21.1
3+
version: 0.21.2
44
appVersion: "0.21.0"
55
description: Provides easy redis setup definitions for Kubernetes services, and deployment.
66
engine: gotpl
77
maintainers:
88
- name: iamabhishek-dubey
9+
910
- name: sandy724
1011
- name: shubham-cmyk
1112
name: redis-operator

charts/redis-operator/templates/operator-deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,21 @@ spec:
5050
{{- if .Values.redisOperator.pprof.enabled }}
5151
- --pprof-bind-address={{ .Values.redisOperator.pprof.bindAddress }}
5252
{{- end }}
53+
{{- if .Values.redisOperator.metrics.enabled }}
54+
- --metrics-bind-address={{ .Values.redisOperator.metrics.bindAddress }}
55+
{{- end }}
5356
{{- range $arg := .Values.redisOperator.extraArgs }}
5457
- {{ $arg }}
5558
{{- end }}
5659
ports:
5760
- containerPort: 8081
5861
name: probe
5962
protocol: TCP
63+
{{- if .Values.redisOperator.metrics.enabled }}
64+
- containerPort: {{ .Values.redisOperator.metrics.bindAddress | regexFind ":[0-9]+" | trimPrefix ":" }}
65+
name: metrics
66+
protocol: TCP
67+
{{- end }}
6068
{{- if .Values.redisOperator.pprof.enabled }}
6169
- containerPort: {{ .Values.redisOperator.pprof.bindAddress | regexFind ":[0-9]+" | trimPrefix ":" }}
6270
name: pprof

charts/redis-operator/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ redisOperator:
3131
# The address the pprof endpoint binds to
3232
bindAddress: ":6060"
3333

34+
# metrics configuration for monitoring
35+
metrics:
36+
# Enable metrics server
37+
enabled: true
38+
# The address the metrics endpoint binds to
39+
bindAddress: ":8080"
40+
3441
resources:
3542
limits:
3643
cpu: 500m

0 commit comments

Comments
 (0)