diff --git a/deploy/grafana/grafana-deploy.yaml b/deploy/grafana/grafana-deploy.yaml index 86157a6..7d935bf 100644 --- a/deploy/grafana/grafana-deploy.yaml +++ b/deploy/grafana/grafana-deploy.yaml @@ -49,6 +49,23 @@ spec: value: "https://obs.prod.panic.haus/" - name: GF_SERVER_DOMAIN value: "obs.prod.panic.haus" + # External database configuration (example using PostgreSQL) + - name: GF_DATABASE_TYPE + value: "postgres" + - name: GF_DATABASE_HOST + value: "postgres-base-rw.postgres:5432" # Change to your external DB service address + - name: GF_DATABASE_NAME + value: "grafanadb" + - name: GF_DATABASE_USER + valueFrom: + secretKeyRef: + name: grafana-db-secret + key: username + - name: GF_DATABASE_PASSWORD + valueFrom: + secretKeyRef: + name: grafana-db-secret + key: password resources: requests: cpu: 250m