diff --git a/hosts/box/default.nix b/hosts/box/default.nix index e1f2fa2..64385dc 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -327,8 +327,8 @@ in { static_configs = [{ targets = [ "10.6.0.22:8811" ]; }]; } { - job_name = "tal"; - static_configs = [{ targets = [ "10.6.0.110:9100" ]; }]; + job_name = "faf"; + static_configs = [{ targets = [ "10.6.0.245:9002" ]; }]; } { job_name = "namish"; diff --git a/hosts/faf/default.nix b/hosts/faf/default.nix index cb3bc4e..8025082 100644 --- a/hosts/faf/default.nix +++ b/hosts/faf/default.nix @@ -24,13 +24,25 @@ in { networking.interfaces.enp1s0.useDHCP = true; networking.interfaces.enp2s0.useDHCP = true; - networking.firewall.allowedTCPPorts = [ 22 53 ]; + networking.firewall.allowedTCPPorts = [ 22 53 9001 ]; networking.firewall.allowedUDPPorts = [ 53 ]; users.users.root = userBase; users.users.qbit = userBase; services = { + prometheus = { + enable = true; + port = 9001; + + exporters = { + node = { + enable = true; + enabledCollectors = [ "systemd" ]; + port = 9002; + }; + }; + }; adguardhome = { enable = false; port = 3000;