From d7888504d81a874435165dd0e6edf50c62739700 Mon Sep 17 00:00:00 2001 From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Wed, 4 Sep 2024 18:31:46 +0200 Subject: [PATCH] Add poolers example, fix monitoring test Signed-off-by: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> --- charts/cluster/examples/pgbouncer.yaml | 18 ++++++++++++++++++ .../test/monitoring/01-monitoring_cluster.yaml | 2 ++ 2 files changed, 20 insertions(+) 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/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