clanServices/prometheus: fix IPv6 address brackets

This commit is contained in:
2025-11-03 23:51:20 +01:00
parent 20b4d300ee
commit 53b1264c44

View File

@@ -51,7 +51,7 @@
targetHost = targetConfig.clan.core.vars.generators.zerotier.files.zerotier-ip.value;
in
[
"${targetHost}:${toString targetConfig.services.prometheus.exporters.${exporter}.port}"
"[${targetHost}]:${toString targetConfig.services.prometheus.exporters.${exporter}.port}"
];
labels.instance = machineName;
}) machinesWithExporter;