From 880f2952b3484edd3f5dadfe6608e29aaf972e8f Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 19 Jun 2023 08:19:00 -0400 Subject: [PATCH] grafana: use postgres backend --- hosts/sakura/services/grafana.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/sakura/services/grafana.nix b/hosts/sakura/services/grafana.nix index 6a4c807..7e508d4 100644 --- a/hosts/sakura/services/grafana.nix +++ b/hosts/sakura/services/grafana.nix @@ -17,6 +17,14 @@ _: { auto_assign_org = true; auto_assign_org_role = "Viewer"; }; + database = { + type = "postgres"; + host = "192.168.1.211:5432"; + name = "grafana"; + user = "grafana"; + password = "grafana"; + ssl_mode = "disable"; + }; }; provision = { datasources.settings = {