diff --git a/machines/storage01/prometheus.nix b/machines/storage01/prometheus.nix index 0e07478..b2b3af6 100644 --- a/machines/storage01/prometheus.nix +++ b/machines/storage01/prometheus.nix @@ -64,6 +64,10 @@ in password_file = config.age.secrets."prometheus-uptime-kuma-apikey".path; }; } + { + job_name = "hyp01_ups"; + static_configs = [ { targets = [ "100.80.255.180:9199" ]; } ]; + } ]; }; diff --git a/machines/vault01/ups.nix b/machines/vault01/ups.nix index 69934fd..71a53f5 100644 --- a/machines/vault01/ups.nix +++ b/machines/vault01/ups.nix @@ -18,4 +18,9 @@ # user = "eatonMon"; # }; }; + services.prometheus.exporters.nut = { + enable = true; + listenAddress = "100.80.255.180"; + port = 9199; + }; }