Skip to content

Commit

Permalink
feat: Enable redis metrics through helm Chart (argoproj#16279)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Petermann <[email protected]>
  • Loading branch information
peschmae committed Nov 8, 2023
1 parent d4dc155 commit 6fb5fb2
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 0 deletions.
47 changes: 47 additions & 0 deletions manifests/ha/base/redis-ha/chart/upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,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 @@ -939,6 +943,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 @@ -969,6 +977,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 @@ -985,6 +997,7 @@ metadata:
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.22.3
exporter: enabled
annotations:
spec:
type: ClusterIP
Expand All @@ -998,6 +1011,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 @@ -1184,6 +1201,9 @@ spec:
metadata:
annotations:
checksum/init-config: 69130412bda04eacad3530cb7bcf26cf121401e725e15d0959dd71a7380afe75
prometheus.io/port: "9121"
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
labels:
release: argocd
app: redis-ha
Expand Down Expand Up @@ -1379,6 +1399,33 @@ spec:
readOnly: true
- mountPath: /data
name: data
- name: redis-exporter
image: "oliver006/redis_exporter:v1.55.0"
imagePullPolicy: IfNotPresent
args:
env:
- name: REDIS_ADDR
value: redis://localhost:6379
livenessProbe:
httpGet:
path: /metrics
port: 9121
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 15
readinessProbe:
httpGet:
path: /metrics
port: 9121
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 15
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 @@ -6,6 +6,9 @@ redis-ha:
config:
save: "\"\""
bind: "0.0.0.0"
exporter:
enabled: true
tag: v1.55.0
haproxy:
enabled: true
IPv6:
Expand Down
45 changes: 45 additions & 0 deletions manifests/ha/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21959,6 +21959,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter-port
port: 9121
protocol: TCP
targetPort: exporter-port
selector:
app.kubernetes.io/name: argocd-redis-ha
type: ClusterIP
Expand All @@ -21983,6 +21987,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter
port: 9121
protocol: TCP
targetPort: exporter-port
publishNotReadyAddresses: true
selector:
app.kubernetes.io/name: argocd-redis-ha
Expand All @@ -22009,6 +22017,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter
port: 9121
protocol: TCP
targetPort: exporter-port
publishNotReadyAddresses: true
selector:
app.kubernetes.io/name: argocd-redis-ha
Expand All @@ -22035,6 +22047,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter
port: 9121
protocol: TCP
targetPort: exporter-port
publishNotReadyAddresses: true
selector:
app.kubernetes.io/name: argocd-redis-ha
Expand Down Expand Up @@ -23493,6 +23509,9 @@ spec:
metadata:
annotations:
checksum/init-config: 69130412bda04eacad3530cb7bcf26cf121401e725e15d0959dd71a7380afe75
prometheus.io/path: /metrics
prometheus.io/port: "9121"
prometheus.io/scrape: "true"
labels:
app.kubernetes.io/name: argocd-redis-ha
spec:
Expand Down Expand Up @@ -23634,6 +23653,32 @@ spec:
readOnly: true
- mountPath: /data
name: data
- args: null
env:
- name: REDIS_ADDR
value: redis://localhost:6379
image: oliver006/redis_exporter:v1.55.0
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /metrics
port: 9121
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 3
name: redis-exporter
ports:
- containerPort: 9121
name: exporter-port
readinessProbe:
httpGet:
path: /metrics
port: 9121
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 3
resources: {}
volumeMounts: null
initContainers:
- args:
- /readonly-config/init.sh
Expand Down
45 changes: 45 additions & 0 deletions manifests/ha/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter-port
port: 9121
protocol: TCP
targetPort: exporter-port
selector:
app.kubernetes.io/name: argocd-redis-ha
type: ClusterIP
Expand All @@ -1370,6 +1374,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter
port: 9121
protocol: TCP
targetPort: exporter-port
publishNotReadyAddresses: true
selector:
app.kubernetes.io/name: argocd-redis-ha
Expand All @@ -1396,6 +1404,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter
port: 9121
protocol: TCP
targetPort: exporter-port
publishNotReadyAddresses: true
selector:
app.kubernetes.io/name: argocd-redis-ha
Expand All @@ -1422,6 +1434,10 @@ spec:
port: 26379
protocol: TCP
targetPort: sentinel
- name: http-exporter
port: 9121
protocol: TCP
targetPort: exporter-port
publishNotReadyAddresses: true
selector:
app.kubernetes.io/name: argocd-redis-ha
Expand Down Expand Up @@ -2880,6 +2896,9 @@ spec:
metadata:
annotations:
checksum/init-config: 69130412bda04eacad3530cb7bcf26cf121401e725e15d0959dd71a7380afe75
prometheus.io/path: /metrics
prometheus.io/port: "9121"
prometheus.io/scrape: "true"
labels:
app.kubernetes.io/name: argocd-redis-ha
spec:
Expand Down Expand Up @@ -3021,6 +3040,32 @@ spec:
readOnly: true
- mountPath: /data
name: data
- args: null
env:
- name: REDIS_ADDR
value: redis://localhost:6379
image: oliver006/redis_exporter:v1.55.0
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /metrics
port: 9121
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 3
name: redis-exporter
ports:
- containerPort: 9121
name: exporter-port
readinessProbe:
httpGet:
path: /metrics
port: 9121
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 3
resources: {}
volumeMounts: null
initContainers:
- args:
- /readonly-config/init.sh
Expand Down

0 comments on commit 6fb5fb2

Please sign in to comment.