diff --git a/nixos/hosts/monitoring/default.nix b/nixos/hosts/monitoring/default.nix index a47cba0..ce4858f 100644 --- a/nixos/hosts/monitoring/default.nix +++ b/nixos/hosts/monitoring/default.nix @@ -44,20 +44,23 @@ } ]; }; - port = 14200; + ports = { + node = 14200; + nginx = 14201; + }; in [ - (static "aerial" [ port ]) - (static "pineapple" [ port (port + 1) ]) - (static "watermelon" [ port (port + 1) (port + 2) ]) - (static "mango" [ port ]) - (static "happystaticbuzz" [ port ]) - (static "keylime" [ port ]) - (static "keysmash" [ port ]) - (static "ingress-proxy" [ port ]) + (static "aerial" [ ports.node ]) + (static "pineapple" [ ports.node ]) + (static "watermelon" [ ports.node ]) + (static "mango" [ ports.node ]) + (static "happystaticbuzz" [ ports.node ]) + (static "keylime" [ ports.node ]) + (static "keysmash" [ ports.node ]) + (static "ingress-proxy" [ ports.node ports.nginx ]) { job_name = "pve1"; static_configs = [ - { targets = [ "192.168.1.128:${builtins.toString port}" ]; } + { targets = [ "192.168.1.128:${builtins.toString ports.node}" ]; } ]; } ];