feat(architect): add netdata monitoring service
This commit is contained in:
parent
d971ab334e
commit
1cc6cf9f95
@ -39,6 +39,7 @@ in
|
|||||||
./jellyseer.nix
|
./jellyseer.nix
|
||||||
./teslamate.nix
|
./teslamate.nix
|
||||||
./postgres.nix
|
./postgres.nix
|
||||||
|
./netdata.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
age.identityPaths = [ "/root/.ssh/id_ed25519" ];
|
age.identityPaths = [ "/root/.ssh/id_ed25519" ];
|
||||||
|
26
hosts/architect/netdata.nix
Normal file
26
hosts/architect/netdata.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
domain = "monitor.giugl.io";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.netdata = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.unstablePkgs.netdata;
|
||||||
|
config = {
|
||||||
|
db.mode = "dbengine";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
architect.vhost.${domain} = with config.architect.networks; {
|
||||||
|
dnsInterfaces = [ "tailscale" "lan" ];
|
||||||
|
|
||||||
|
locations."/" = {
|
||||||
|
port = 19999;
|
||||||
|
allowLan = true;
|
||||||
|
allow = [
|
||||||
|
tailscale.net
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user