From dfc8d63f707196524e50370ff4f79ffea676ab76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sun, 30 Mar 2025 14:00:01 +0200 Subject: [PATCH] update grafana --- deploy/grafana/grafana-deploy.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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