diff --git a/modules/services/grafana/module.nix b/modules/services/grafana/module.nix index ebdfd1f..bc3c6c8 100644 --- a/modules/services/grafana/module.nix +++ b/modules/services/grafana/module.nix @@ -4,6 +4,7 @@ pkgs, ... }: let + inherit (builtins) fetchurl; inherit (lib.modules) mkIf; inherit (lib.options) mkEnableOption; @@ -66,6 +67,24 @@ in { }) ]; }; + dashboards.settings.providers = [ + { + # taken from https://grafana.com/grafana/dashboards/1860-node-exporter-full/ + name = "system-status"; + path = fetchurl { + url = "https://grafana.com/api/dashboards/1860/revisions/40/download"; + hash = "sha256-zTsS/UEX6W8+qK3l2GtvdDfmwS8eVnnyZxZ++LtRLBA="; + }; + } + { + # taken from https://grafana.com/grafana/dashboards/1860-node-exporter-full/ + name = "PostgreSQL-status"; + path = fetchurl { + url = "https://grafana.com/api/dashboards/9628/revisions/8/download"; + hash = "sha256-UhusNAZbyt7fJV/DhFUK4FKOmnTpG0R15YO2r+nDnMc="; + }; + } + ]; }; }; services.nginx = {