diff --git a/services/monitoring/prometheus.mod.nix b/services/monitoring/prometheus.mod.nix index 96a5089..b31459e 100644 --- a/services/monitoring/prometheus.mod.nix +++ b/services/monitoring/prometheus.mod.nix @@ -1,4 +1,4 @@ -{molecules, ...}:{ +{ universal.modules = [ { services.prometheus.exporters = { @@ -13,14 +13,6 @@ ]; glucose.modules = [ ({ - nixpkgs, - molecules, - ... - }: let - ip = i: "10.24.1.${toString i}"; - ips = builtins.mapAttrs (nixpkgs.lib.const ip) molecules; - ips' = builtins.mapAttrs (name: ip: "${ip}:6703") ips; - in { services.prometheus = { enable = true; port = 6750; @@ -31,7 +23,7 @@ job_name = "devices"; static_configs = [ { - targets = ips'; + targets = [ "10.24.1.4:6703" "10.24.1.9:6703" "10.24.1.16:6703" "10.24.1.225:6703" "10.24.1.196:6703" ]; } ]; }