From 7945190abbc609c2d1ea037718f69115b3925795 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sat, 5 Nov 2022 09:57:52 -0400 Subject: chore(grfn/system): Update grafana configuration for mugwump Lots of deprecations were made in the new nixos version for the grafana config - this updates all of those settings in mugwump's system config Change-Id: I69cdc9d2d59702c38d6334a4d27a04bef4e8c132 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7190 Reviewed-by: grfn Autosubmit: grfn Tested-by: BuildkiteCI --- users/grfn/system/system/machines/mugwump.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'users') diff --git a/users/grfn/system/system/machines/mugwump.nix b/users/grfn/system/system/machines/mugwump.nix index cc2fe29cd23d..e52576a6cc68 100644 --- a/users/grfn/system/system/machines/mugwump.nix +++ b/users/grfn/system/system/machines/mugwump.nix @@ -13,6 +13,8 @@ with lib; networking.hostName = "mugwump"; + system.stateVersion = "22.05"; + boot = { loader.systemd-boot.enable = true; @@ -106,15 +108,20 @@ with lib; services.grafana = { enable = true; - port = 3000; - domain = "metrics.gws.fyi"; - rootUrl = "https://metrics.gws.fyi"; dataDir = "/var/lib/grafana"; - analytics.reporting.enable = false; + + settings = { + server = { + http_port = 3000; + root_url = "https://metrics.gws.fyi"; + domain = "metrics.gws.fyi"; + }; + analytics.reporting_enabled = false; + }; provision = { enable = true; - datasources = [{ + datasources.settings.datasources = [{ name = "Prometheus"; type = "prometheus"; url = "http://localhost:9090"; -- cgit 1.4.1