fix(prometheus-nut-exporter): make it work

This commit is contained in:
sinavir 2024-04-22 08:28:40 +02:00
parent 1eea46b59f
commit d5d21ec204
2 changed files with 2 additions and 1 deletions

View file

@ -66,6 +66,7 @@ in
} }
{ {
job_name = "hyp01_ups"; job_name = "hyp01_ups";
metrics_path = "/ups_metrics";
static_configs = [ { targets = [ "100.80.255.180:9199" ]; } ]; static_configs = [ { targets = [ "100.80.255.180:9199" ]; } ];
} }
]; ];

View file

@ -11,7 +11,6 @@
driver = "usbhid-ups"; driver = "usbhid-ups";
port = "auto"; port = "auto";
}; };
upsmon.enable = false;
users.eatonmon = { users.eatonmon = {
passwordFile = config.age.secrets."eatonmon-password_file".path; passwordFile = config.age.secrets."eatonmon-password_file".path;
upsmon = "primary"; upsmon = "primary";
@ -88,4 +87,5 @@
listenAddress = "100.80.255.180"; listenAddress = "100.80.255.180";
port = 9199; port = 9199;
}; };
networking.firewall.interfaces.wt0.allowedTCPPorts = [ 9199 ];
} }