diff --git a/addons-cluster/redis-cluster/templates/prometheus/monitor.yaml b/addons-cluster/redis-cluster/templates/prometheus/monitor.yaml index 10b32dd97..0a45888bf 100644 --- a/addons-cluster/redis-cluster/templates/prometheus/monitor.yaml +++ b/addons-cluster/redis-cluster/templates/prometheus/monitor.yaml @@ -1,4 +1,4 @@ -{{- if and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor") .Values.prometheus.enabled }} +{{- if and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PodMonitor") .Values.prometheus.enabled }} # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 kind: PodMonitor