From df3f68bcfbf350f580922fffdc494735a0064fc9 Mon Sep 17 00:00:00 2001 From: Mario Trangoni Date: Mon, 23 Dec 2024 11:10:44 +0100 Subject: [PATCH] manifests/minimal-master-replica-svcmonitor.yaml: Update postgres-exporter image (#2777) Signed-off-by: Mario Trangoni Co-authored-by: Felix Kunde --- manifests/minimal-master-replica-svcmonitor.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/manifests/minimal-master-replica-svcmonitor.yaml b/manifests/minimal-master-replica-svcmonitor.yaml index 67ed28c81..049ea12eb 100644 --- a/manifests/minimal-master-replica-svcmonitor.yaml +++ b/manifests/minimal-master-replica-svcmonitor.yaml @@ -31,11 +31,21 @@ spec: version: "13" sidecars: - name: "exporter" - image: "wrouesnel/postgres_exporter" + image: "quay.io/prometheuscommunity/postgres-exporter:v0.15.0" ports: - name: exporter containerPort: 9187 protocol: TCP + env: + - name: DATA_SOURCE_URI + value: ":5432/?sslmode=disable" + - name: DATA_SOURCE_USER + value: "postgres" + - name: DATA_SOURCE_PASS + valueFrom: + secretKeyRef: + name: postgres.test-pg.credentials.postgresql.acid.zalan.do + key: password resources: limits: cpu: 500m