fix(openfga): Add podMonitor to postgres
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user