Add postgres exporter to the main postgres server.

This commit is contained in:
Joseph Hanson 2024-04-10 13:13:29 -05:00
parent c651c1d6ee
commit 8a33a9178e
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -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