summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/foundation/monitoring.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/foundation/monitoring.nix b/modules/foundation/monitoring.nix
index 38592f0..484350f 100644
--- a/modules/foundation/monitoring.nix
+++ b/modules/foundation/monitoring.nix
@@ -19,7 +19,7 @@ in
         type = with types; listOf (submodule {
           options = {
             name = mkOption { type = str; };
-            tailscale.ip = mkOption { type = str; };
+            ip = mkOption { type = str; };
           };
         });
         default = [ ];
@@ -44,10 +44,10 @@ in
             scrape_interval = "15s";
           };
 
-          scrape_configs = map ({ name, tailscale, ... }: {
+          scrape_configs = map ({ name, ip, ... }: {
             job_name = "${name}-node";
             static_configs = [{
-              targets = [ "${tailscale.ip}:9001" ];
+              targets = [ "${ip}:9001" ];
               labels = { type = "node"; host = name; };
             }];
           }) cfg.server.hosts;