feat: add disks to monitoring
This commit is contained in:
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;
|
||||
}];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user