grafana: add dashboards
This commit is contained in:
parent
11d3888cc1
commit
7c04c06766
1 changed files with 19 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue