Skip to content

Commit

Permalink
feat: Enable redis metrics through helm Chart (#16279)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Petermann <[email protected]>

Bump exporter to 1.58.0
  • Loading branch information
peschmae committed Oct 31, 2024
1 parent e861b55 commit 185bb36
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 0 deletions.
62 changes: 62 additions & 0 deletions manifests/ha/base/redis-ha/chart/upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter
port: 9121
protocol: TCP
targetPort: exporter-port
selector:
release: argocd
app: redis-ha
Expand Down Expand Up @@ -948,6 +952,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter
port: 9121
protocol: TCP
targetPort: exporter-port
selector:
release: argocd
app: redis-ha
Expand Down Expand Up @@ -977,6 +985,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter
port: 9121
protocol: TCP
targetPort: exporter-port
selector:
release: argocd
app: redis-ha
Expand All @@ -993,6 +1005,7 @@ metadata:
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.26.6
exporter: enabled
annotations:
spec:
type: ClusterIP
Expand All @@ -1006,6 +1019,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter-port
port: 9121
protocol: TCP
targetPort: exporter-port
selector:
release: argocd
app: redis-ha
Expand Down Expand Up @@ -1196,6 +1213,9 @@ spec:
metadata:
annotations:
checksum/init-config: 9d3c019a5ea1fd98ab5cde397d8eecd351da884f15e6ba346c607cb2446c2198
prometheus.io/port: "9121"
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
labels:
release: argocd
app: redis-ha
Expand Down Expand Up @@ -1413,6 +1433,48 @@ spec:
readOnly: true
- mountPath: /data
name: data
- name: redis-exporter
image: "oliver006/redis_exporter:v1.58.0"
imagePullPolicy: IfNotPresent
args:
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
env:
- name: REDIS_ADDR
value: redis://localhost:6379
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: argocd-redis
key: auth
livenessProbe:
httpGet:
path: /metrics
port: 9121
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 3
readinessProbe:
httpGet:
path: /metrics
port: 9121
initialDelaySeconds: 15
periodSeconds: 15
successThreshold: 2
timeoutSeconds: 3
resources:
{}
ports:
- name: exporter-port
containerPort: 9121
volumeMounts:
volumes:
- name: config
configMap:
Expand Down
3 changes: 3 additions & 0 deletions manifests/ha/base/redis-ha/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ redis-ha:
config:
save: "\"\""
bind: "0.0.0.0"
exporter:
enabled: true
tag: v1.58.0
haproxy:
enabled: true
IPv6:
Expand Down
60 changes: 60 additions & 0 deletions manifests/ha/install.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions manifests/ha/namespace-install.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 185bb36

Please sign in to comment.