alpine: prometheus: use hostnames not IPs

This commit is contained in:
Tristan 2024-03-07 11:46:26 +00:00
parent 61749486f3
commit 52276c72f1

View file

@ -1,8 +1,9 @@
{config, ...}: let {config, ...}: let
inherit (config.services) prometheus; inherit (config.services) prometheus;
nodes = [ nodes = [
"100.65.29.110" "alpine"
"100.106.241.122" "fcs-tristan-nixbook"
"zenix"
]; ];
addPort = ip: "${ip}:${toString prometheus.exporters.node.port}"; addPort = ip: "${ip}:${toString prometheus.exporters.node.port}";
in { in {