immich database, podmonitor for postgres

This commit is contained in:
Gabriel Simmer 2023-12-09 22:42:44 +00:00
parent 2ab01e2244
commit 174568769d
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ

View file

@ -48,6 +48,9 @@ spec:
- name: authentik
databases:
- authentik
- name: immich
databases:
- immich
---
apiVersion: v1
kind: ConfigMap
@ -57,3 +60,22 @@ data:
init.sql: |
\c authentik
GRANT CREATE ON SCHEMA public TO "authentik";
\c immich
GRANT CREATE ON SCHEMA public TO "immich";
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: hippo
spec:
selector:
matchLabels:
postgres-operator.crunchydata.com/cluster: hippo
postgres-operator.crunchydata.com/crunchy-postgres-exporter: "true"
podTargetLabels:
- postgres-operator.crunchydata.com/cluster
- postgres-operator.crunchydata.com/role
- postgres-operator.crunchydata.com/instance
podMetricsEndpoints:
- port: exporter
interval: 30s