allow for port config in the node exporter

This commit is contained in:
oxapentane - 2023-05-05 20:36:50 +02:00
parent f29b63f709
commit b6c3fe8762
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ in
Whether to enable TLMS default prometheus exporter and log collection
'';
};
monitoring.node-exporter = with lib; {
node-exporter = with lib; {
port = mkOption {
type = types.port;
default = 8119;
@ -34,7 +34,7 @@ in
services.prometheus.exporters = {
node = {
enable = true;
port = 8119;
port = cfg.node-exporter.port;
listenAddress = config.deployment-TLMS.net.wg.addr4;
enabledCollectors = [
"systemd"