diff --git a/machines/nixos/storage01/prometheus.nix b/machines/nixos/storage01/prometheus.nix index 0c23a60..d19f0a3 100644 --- a/machines/nixos/storage01/prometheus.nix +++ b/machines/nixos/storage01/prometheus.nix @@ -18,7 +18,9 @@ let node: { config, ... }: lib.optional config.dgn-node-monitoring.enable { - targets = [ "${node}.dgnum:${builtins.toString config.dgn-node-monitoring.port}" ]; + targets = map (p: "${node}.dgnum:${builtins.toString p}") ( + builtins.attrValues config.dgn-node-monitoring.ports + ); labels = { host = node; };