forked from DGNum/infrastructure
fix(prometheus-nut-exporter): make it work
This commit is contained in:
parent
1eea46b59f
commit
d5d21ec204
2 changed files with 2 additions and 1 deletions
|
@ -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" ]; } ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue