mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 01:44:40 +02:00
service/webserver: add dashboard
This commit is contained in:
parent
589714db4b
commit
18c9d409bb
3 changed files with 2358 additions and 0 deletions
|
@ -171,6 +171,16 @@ in
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
grafana.provision = {
|
||||||
|
dashboards.settings.providers = [
|
||||||
|
{
|
||||||
|
name = "Caddy";
|
||||||
|
options.path = pkgs.grafana-dashboards.caddy;
|
||||||
|
disableDeletion = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
|
2337
pkgs/grafana-dashboards/caddy.json
Normal file
2337
pkgs/grafana-dashboards/caddy.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -172,5 +172,16 @@ lib.makeScope pkgs.newScope (
|
||||||
version = "1";
|
version = "1";
|
||||||
hash = "sha256-foc00LtcBTXOzvwyddJO0QJkCP82bUXa5iMuQmHqKcg=";
|
hash = "sha256-foc00LtcBTXOzvwyddJO0QJkCP82bUXa5iMuQmHqKcg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
caddy =
|
||||||
|
(buildGrafanaDashboard {
|
||||||
|
id = 20802;
|
||||||
|
pname = "caddy-monitoring";
|
||||||
|
version = "1";
|
||||||
|
hash = "sha256-vSt63PakGp5NzKFjbU5Yh0nDbKET5QRWp5nusM76/O4=";
|
||||||
|
}).overrideAttrs
|
||||||
|
(_: {
|
||||||
|
src = ./caddy.json; # sadly only imported dashboards work
|
||||||
|
});
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue