From 3b7106314f3b2678e2a252be4aa276a91e9287c8 Mon Sep 17 00:00:00 2001 From: noe Date: Sun, 11 Feb 2024 04:01:00 -0500 Subject: [PATCH] monitoring --- nixos/hosts/monitoring/default.nix | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/nixos/hosts/monitoring/default.nix b/nixos/hosts/monitoring/default.nix index cdfe8c4..3ec059d 100644 --- a/nixos/hosts/monitoring/default.nix +++ b/nixos/hosts/monitoring/default.nix @@ -47,20 +47,21 @@ ports = { node = 14200; nginx = 14201; + pve = 14210; }; - in [ - (static "aerial" [ ports.node ]) - (static "pineapple" [ ports.node ports.nginx ]) - (static "watermelon" [ ports.node ports.nginx ]) - (static "mango" [ ports.node ]) - (static "happystaticbuzz" [ ports.node ]) - (static "keylime" [ ports.node ]) - (static "keysmash" [ ports.node ]) - (static "ingress-proxy" [ ports.node ports.nginx ]) + in with ports; [ + (static "aerial" [ node ]) + (static "pineapple" [ node nginx ]) + (static "watermelon" [ node nginx ]) + (static "mango" [ node ]) + (static "happystaticbuzz" [ node ]) + (static "keylime" [ node ]) + (static "keysmash" [ node ]) + (static "ingress-proxy" [ node nginx ]) { job_name = "pve1"; static_configs = [ - { targets = [ "192.168.1.128:${builtins.toString ports.node}" ]; } + { targets = [ map (port: "192.168.1.128:${builtins.toString port}") [ node pve ] ]; } ]; } ];