From 8a33a9178e5809efcb872e2dafd4ef5caad81595 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 10 Apr 2024 13:13:29 -0500 Subject: [PATCH] Add postgres exporter to the main postgres server. --- .../crunchy-postgres-operator/cluster/postgrescluster.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kubernetes/apps/database/crunchy-postgres-operator/cluster/postgrescluster.yaml b/kubernetes/apps/database/crunchy-postgres-operator/cluster/postgrescluster.yaml index 4b9efc63..556726d5 100644 --- a/kubernetes/apps/database/crunchy-postgres-operator/cluster/postgrescluster.yaml +++ b/kubernetes/apps/database/crunchy-postgres-operator/cluster/postgrescluster.yaml @@ -19,6 +19,12 @@ spec: external-dns.alpha.kubernetes.io/hostname: postgres.jahanson.tech io.cilium/lb-ipam-ips: 10.45.0.7 + monitoring: + pgmonitor: + exporter: + # https://github.com/CrunchyData/postgres-operator-examples/blob/main/helm/install/values.yaml + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-0.15.0-3 + patroni: # turn on sync writes to at least 1 other replica dynamicConfiguration: synchronous_mode: true