summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-03-16 18:44:19 +0100
committerMartin Fischer <martin@push-f.com>2025-03-17 06:31:42 +0100
commit2e1490682566a8670032c4765a50e625e11e6e32 (patch)
tree4c76a71808c1e5421dbe7140c9583284050681db
parent01d329723f68f7828208be20accd6b5c3912536a (diff)
refactor(tente): rename prometheusExporterPort
There are many different Prometheus exporters.
-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}" ];
}];
}
];