summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/foundation/monitoring.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/foundation/monitoring.nix b/modules/foundation/monitoring.nix
index 34ff810..0f367d9 100644
--- a/modules/foundation/monitoring.nix
+++ b/modules/foundation/monitoring.nix
@@ -44,13 +44,13 @@ in
scrape_interval = "15s";
};
- scrape_configs = map ({ name, ip, ... }: {
- job_name = "${name}-node";
- static_configs = [{
- targets = [ "${ip}:9001" ];
- labels = { type = "node"; host = name; };
- }];
- }) cfg.server.hosts;
+ scrape_configs = [{
+ job_name = "node";
+ static_configs = map ({ name, ip }: {
+ targets = [ "${ip}:${toString nodeExporterPort}" ];
+ labels = { instance = name; };
+ }) cfg.server.hosts;
+ }];
};
};
})