diff --git a/applications/prometheus.nix b/applications/prometheus.nix index a431e1a..67d1ca0 100644 --- a/applications/prometheus.nix +++ b/applications/prometheus.nix @@ -60,7 +60,7 @@ in { job_name = "node_exporter"; static_configs = [ { - targets = map (hostname: "${hostname}:${collecter_port}") lib.attrsets.mapAttrsToList (server: server.deployment.hostname) nodes ++ cfg.other_nodes; + targets = (map (hostname: "${hostname}:${collecter_port}") (lib.attrsets.mapAttrsToList (server: server.deployment.hostname)) nodes) ++ cfg.other_nodes; } ]; }