From 2e1490682566a8670032c4765a50e625e11e6e32 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 16 Mar 2025 18:44:19 +0100 Subject: refactor(tente): rename prometheusExporterPort There are many different Prometheus exporters. --- nixos/hosts/tente/default.nix | 2 +- nixos/hosts/tente/monitoring.nix | 6 +++--- 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}" ]; }]; } ]; -- cgit v1.2.3