diff --git a/charts/cluster/examples/pgbouncer.yaml b/charts/cluster/examples/pgbouncer.yaml index 880742c00..c698070df 100644 --- a/charts/cluster/examples/pgbouncer.yaml +++ b/charts/cluster/examples/pgbouncer.yaml @@ -2,11 +2,29 @@ mode: standalone cluster: instances: 1 + monitoring: + enabled: true + podMonitor: + enabled: true poolers: - name: rw type: rw instances: 1 + monitoring: + enabled: true + podMonitor: + enabled: true + relabelings: + - targetLabel: type + replacement: rw - name: ro type: ro instances: 1 + monitoring: + enabled: true + podMonitor: + enabled: true + relabelings: + - targetLabel: type + replacement: ro diff --git a/charts/cluster/templates/cluster.yaml b/charts/cluster/templates/cluster.yaml index 9a4b0254a..39e597b6d 100644 --- a/charts/cluster/templates/cluster.yaml +++ b/charts/cluster/templates/cluster.yaml @@ -68,7 +68,7 @@ spec: {{- toYaml .parameters | nindent 6 }} pg_hba: {{- toYaml .pg_hba | nindent 6 }} - {{ end }} + {{- end }} {{- with .Values.cluster.roles }} managed: diff --git a/charts/cluster/test/monitoring/01-monitoring_cluster.yaml b/charts/cluster/test/monitoring/01-monitoring_cluster.yaml index b30e61acc..e8d590e79 100644 --- a/charts/cluster/test/monitoring/01-monitoring_cluster.yaml +++ b/charts/cluster/test/monitoring/01-monitoring_cluster.yaml @@ -39,6 +39,7 @@ poolers: monitoring: enabled: true podMonitor: + enabled: true relabelings: - targetLabel: type replacement: rw @@ -57,6 +58,7 @@ poolers: monitoring: enabled: true podMonitor: + enabled: true relabelings: - targetLabel: type replacement: ro