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 ]; }