fix(mycloud-matrix): add monitoring for redis
This commit is contained in:
parent
cce04498dc
commit
a19a763e0a
1 changed files with 19 additions and 0 deletions
|
@ -294,6 +294,25 @@ spec:
|
||||||
database: {{ .name | quote }}
|
database: {{ .name | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
redis:
|
||||||
|
enabled: true
|
||||||
|
replica:
|
||||||
|
# just one replica
|
||||||
|
replicaCount: {{ .Values.commons.redis.replicas }}
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: {{ (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor") }}
|
||||||
|
additionalLabels:
|
||||||
|
{{- toYaml .Values.commons.prometheus.monitor.labels | nindent 12 }}
|
||||||
|
prometheusRule:
|
||||||
|
# empty rules
|
||||||
|
enabled: false
|
||||||
|
# {{ (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PrometheusRule") }}
|
||||||
|
additionalLabels:
|
||||||
|
{{- toYaml .Values.commons.prometheus.rules.labels | nindent 12 }}
|
||||||
|
rules: []
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
podmonitor:
|
podmonitor:
|
||||||
enabled: {{ (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PodMonitor") }}
|
enabled: {{ (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PodMonitor") }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue