summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/hosts/tente/default.nix2
-rw-r--r--nixos/hosts/tente/monitoring.nix6
2 files changed, 4 insertions, 4 deletions
diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix
index 49a1a6f..64eba57 100644
--- a/nixos/hosts/tente/default.nix
+++ b/nixos/hosts/tente/default.nix
@@ -79,7 +79,7 @@ in
monitoring.grafanaUiPort = 3000;
monitoring.alloyUiPort = 3001;
monitoring.lokiPort = 3030;
- monitoring.prometheusExporterPort = 9002;
+ monitoring.prometheusNodeExporterPort = 9002;
headscale.port = 8080;
matrix.port = 8008;
diff --git a/nixos/hosts/tente/monitoring.nix b/nixos/hosts/tente/monitoring.nix
index ce0d302..3916e74 100644
--- a/nixos/hosts/tente/monitoring.nix
+++ b/nixos/hosts/tente/monitoring.nix
@@ -14,7 +14,7 @@ in
alloyUiPort = lib.mkOption {
type = lib.types.int;
};
- prometheusExporterPort = lib.mkOption {
+ prometheusNodeExporterPort = lib.mkOption {
type = lib.types.int;
};
};
@@ -53,14 +53,14 @@ in
exporters.node = {
enable = true;
enabledCollectors = [ "systemd" ];
- port = cfg.prometheusExporterPort;
+ port = cfg.prometheusNodeExporterPort;
};
scrapeConfigs = [
{
job_name = "node";
static_configs = [{
- targets = [ "localhost:${toString cfg.prometheusExporterPort}" ];
+ targets = [ "localhost:${toString cfg.prometheusNodeExporterPort}" ];
}];
}
];