feat: add disks to monitoring
This commit is contained in:
parent
ada9db7942
commit
8e0e5c0d16
5 changed files with 518 additions and 32 deletions
17
hosts/web-arm/modules/grafana/dashboards/default.nix
Normal file
17
hosts/web-arm/modules/grafana/dashboards/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ lib, pkgs, ... }:
|
||||
let
|
||||
smartDashboard = import ./smart-dashboard.nix { inherit lib pkgs; };
|
||||
dashboardDir = pkgs.linkFarm "grafana-dashboards" [
|
||||
{ name = "smart.json"; path = smartDashboard; }
|
||||
];
|
||||
in
|
||||
{
|
||||
services.grafana.provision.dashboards.settings = {
|
||||
apiVersion = 1;
|
||||
providers = [{
|
||||
name = "nix-dashboards";
|
||||
type = "file";
|
||||
options.path = dashboardDir;
|
||||
}];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue