From d5d21ec2041e5135dea5922ceb90b1a560ae06da Mon Sep 17 00:00:00 2001 From: sinavir Date: Mon, 22 Apr 2024 08:28:40 +0200 Subject: [PATCH] fix(prometheus-nut-exporter): make it work --- machines/storage01/prometheus.nix | 1 + machines/vault01/ups.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/machines/storage01/prometheus.nix b/machines/storage01/prometheus.nix index b2b3af6..ad5a1cf 100644 --- a/machines/storage01/prometheus.nix +++ b/machines/storage01/prometheus.nix @@ -66,6 +66,7 @@ in } { job_name = "hyp01_ups"; + metrics_path = "/ups_metrics"; static_configs = [ { targets = [ "100.80.255.180:9199" ]; } ]; } ]; diff --git a/machines/vault01/ups.nix b/machines/vault01/ups.nix index 911344e..8df1535 100644 --- a/machines/vault01/ups.nix +++ b/machines/vault01/ups.nix @@ -11,7 +11,6 @@ driver = "usbhid-ups"; port = "auto"; }; - upsmon.enable = false; users.eatonmon = { passwordFile = config.age.secrets."eatonmon-password_file".path; upsmon = "primary"; @@ -88,4 +87,5 @@ listenAddress = "100.80.255.180"; port = 9199; }; + networking.firewall.interfaces.wt0.allowedTCPPorts = [ 9199 ]; }