fix(prometheus-nut-exporter): make it work
Some checks failed
build configuration / build_web02 (push) Successful in 1m3s
build configuration / build_storage01 (push) Successful in 1m16s
build configuration / build_compute01 (push) Successful in 1m21s
build configuration / build_vault01 (push) Successful in 1m21s
build configuration / build_web01 (push) Successful in 1m36s
lint / check (push) Successful in 27s
build configuration / build_rescue01 (push) Successful in 55s
build configuration / push_to_cache (push) Successful in 2m13s
Check meta / check_meta (pull_request) Successful in 23s
Check meta / check_dns (pull_request) Successful in 45s
build configuration / build_vault01 (pull_request) Successful in 1m7s
build configuration / build_storage01 (pull_request) Successful in 1m10s
build configuration / build_compute01 (pull_request) Successful in 1m16s
build configuration / build_web02 (pull_request) Successful in 54s
build configuration / build_web01 (pull_request) Successful in 1m31s
build configuration / build_rescue01 (pull_request) Successful in 52s
build configuration / push_to_cache (pull_request) Failing after 2m13s

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