fix: final set of changes to get it working

This commit is contained in:
silver 2024-05-23 04:20:44 +01:00
parent b8c6e153a4
commit 9148963c1f
Signed by: silver
GPG key ID: 54E2C71918E93B74
2 changed files with 3 additions and 2 deletions

View file

@ -61,7 +61,7 @@ in {
job_name = "node_exporter";
static_configs = [
{
targets = (map (hostname: "${hostname}:${cfg.port_collecter}") (lib.attrsets.mapAttrsToList (server: server.deployment.hostname)) nodes) ++ cfg.other_nodes;
targets = (lib.attrsets.mapAttrsToList (key: value: "${value.config.deployment.targetHost}:${toString cfg.port_collecter}") nodes) ++ cfg.server.other_nodes;
}
];
}