diff --git a/hosts/tatos/hardware-configuration/networking.secret.nix b/hosts/tatos/hardware-configuration/networking.secret.nix index 9913d7d..03c3471 100644 Binary files a/hosts/tatos/hardware-configuration/networking.secret.nix and b/hosts/tatos/hardware-configuration/networking.secret.nix differ diff --git a/hosts/tatos/services/prometheus.nix b/hosts/tatos/services/prometheus.nix index bbebe23..2771f0c 100644 --- a/hosts/tatos/services/prometheus.nix +++ b/hosts/tatos/services/prometheus.nix @@ -1,7 +1,6 @@ -{ config, hostsPath, ... }: +{ ... }: let - istalData = import (hostsPath + "/istal/data.secret.nix"); nodeExporterPort = 40000; in { @@ -28,8 +27,20 @@ in static_configs = [ { targets = [ - "localhost:${toString nodeExporterPort}" - "${istalData.addr}:${toString nodeExporterPort}" + "tatos:${toString nodeExporterPort}" + "istal:${toString nodeExporterPort}" + ]; + } + ]; + } + { + job_name = "node_production"; + static_configs = [ + { + targets = [ + "canigou:${toString nodeExporterPort}" + "magenta:${toString nodeExporterPort}" + "sm-sd1:${toString nodeExporterPort}" ]; } ];