diff options
author | Griffin Smith <root@gws.fyi> | 2022-11-05T13·57-0400 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-11-05T14·01+0000 |
commit | 7945190abbc609c2d1ea037718f69115b3925795 (patch) | |
tree | c603dc6e2bac1596a85bcc10ac81a6dc210a517f | |
parent | bf18e657190e6f1c6fa0d5969b6efc45a3599258 (diff) |
chore(grfn/system): Update grafana configuration for mugwump r/5248
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 <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
-rw-r--r-- | users/grfn/system/system/machines/mugwump.nix | 17 |
1 files changed, 12 insertions, 5 deletions
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"; |