diff --git a/charts/cluster/templates/pooler.yaml b/charts/cluster/templates/pooler.yaml index b449a2f46..8e1b8f9ee 100644 --- a/charts/cluster/templates/pooler.yaml +++ b/charts/cluster/templates/pooler.yaml @@ -17,13 +17,13 @@ spec: {{- end }} {{ with .monitoring }} monitoring: - {{- if not (empty .monitoring.podMonitor) }} - enablePodMonitor: {{ and .monitoring.enabled .monitoring.podMonitor.enabled }} - {{- with .monitoring.podMonitor.relabelings }} + {{- if not (empty .podMonitor) }} + enablePodMonitor: {{ and .enabled .podMonitor.enabled }} + {{- with .podMonitor.relabelings }} podMonitorRelabelings: {{- toYaml . | nindent 6 }} {{ end }} - {{- with .monitoring.podMonitor.metricRelabelings }} + {{- with .podMonitor.metricRelabelings }} podMonitorMetricRelabelings: {{- toYaml . | nindent 6 }} {{ end }}