summaryrefslogtreecommitdiff
path: root/modules/foundation
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-12-19 21:17:23 +0100
committerMel <einebeere@gmail.com>2024-12-19 21:19:17 +0100
commitc989e45850a1446af77a0cfdbc72f1835215671c (patch)
tree5e469116c77b35f500581e55d3bb07af4ede30a4 /modules/foundation
parent5083c75163079244ab2f3f4eca1c9d514c2bbf03 (diff)
downloadnetwork-c989e45850a1446af77a0cfdbc72f1835215671c.tar.zst
network-c989e45850a1446af77a0cfdbc72f1835215671c.zip
Take any IP for monitoring host, not just Tailscale
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'modules/foundation')
-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;