diff --git a/hosts/monitoring/configuration.nix b/hosts/monitoring/configuration.nix index ff01a6b..9805cfe 100644 --- a/hosts/monitoring/configuration.nix +++ b/hosts/monitoring/configuration.nix @@ -79,6 +79,8 @@ with lib; { targets = [ "[::1]:9100" + "radius.bula22.de:9100" + "router.bula22.de:9100" ]; } ]; diff --git a/hosts/radius/configuration.nix b/hosts/radius/configuration.nix index 5b4c451..f726962 100644 --- a/hosts/radius/configuration.nix +++ b/hosts/radius/configuration.nix @@ -20,5 +20,11 @@ with lib; networking.defaultGateway = { address = "10.42.10.1"; interface = "ens18"; }; networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::1"; interface = "ens18"; }; + services.prometheus.exporters.node = { + enable = true; + listenAddress = "10.42.10.5"; + openFirewall = true; + }; + system.stateVersion = "22.05"; } diff --git a/hosts/router/configuration.nix b/hosts/router/configuration.nix index 0df099a..c6214a2 100644 --- a/hosts/router/configuration.nix +++ b/hosts/router/configuration.nix @@ -36,7 +36,11 @@ networking.defaultGateway = { address = "10.42.10.25"; interface = "net-services"; }; networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::25"; interface = "net-services"; }; - networking.nameservers = [ "10.42.10.8" "2a01:4f8:1c0c:8221::8" ]; + services.prometheus.exporters.node = { + enable = true; + listenAddress = "10.42.10.2"; + openFirewall = true; + }; boot.kernel.sysctl = { "net.ipv4.conf.all.forwarding" = true;