grafana: add dashboards

This commit is contained in:
Bloxx12 2025-05-26 09:59:53 +02:00
commit 7c04c06766
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E

View file

@ -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 = {