fix(openfga): Add podMonitor to postgres

This commit is contained in:
2025-11-14 15:04:02 +01:00
parent b83ba2d57a
commit f23e55101c
2 changed files with 21 additions and 1 deletions
+10
View File
@@ -36,3 +36,13 @@ extraObjects:
backup:
retentionPolicy: 60d
target: prefer-standby
- apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: prod-openfga-db-monitor
spec:
selector:
matchLabels:
cnpg.io/cluster: prod-openfga-db
podMetricsEndpoints:
- port: metrics
+11 -1
View File
@@ -4,7 +4,7 @@ datastore:
engine: postgres
migrationType: initContainer
uriSecret: staging-openfga-postgresql
existingSecret: staging-openfga-db-superuser
existingSecret: staging-openfga-db-superuser
secretKeys:
usernameKey: username
passwordKey: password
@@ -62,3 +62,13 @@ extraObjects:
sslRootCert:
key: ca.crt
name: prod-openfga-db-ca
- apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: staging-openfga-db-monitor
spec:
selector:
matchLabels:
cnpg.io/cluster: staging-openfga-db
podMetricsEndpoints:
- port: metrics