From b6c3fe87624f936ad9b07566ca9fd1a534343305 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Fri, 5 May 2023 20:36:50 +0200 Subject: [PATCH] allow for port config in the node exporter --- modules/TLMS/monitoring.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/TLMS/monitoring.nix b/modules/TLMS/monitoring.nix index 8e47f31..282ceeb 100644 --- a/modules/TLMS/monitoring.nix +++ b/modules/TLMS/monitoring.nix @@ -11,7 +11,7 @@ in Whether to enable TLMS default prometheus exporter and log collection ''; }; - monitoring.node-exporter = with lib; { + node-exporter = with lib; { port = mkOption { type = types.port; default = 8119; @@ -34,7 +34,7 @@ in services.prometheus.exporters = { node = { enable = true; - port = 8119; + port = cfg.node-exporter.port; listenAddress = config.deployment-TLMS.net.wg.addr4; enabledCollectors = [ "systemd"