Only enable node exporter when wg-home is enabled
This commit is contained in:
parent
b0117ae7fa
commit
e487cf4720
|
@ -1,7 +1,7 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.prometheus.exporters.node = {
|
||||
enable = true;
|
||||
enable = config.sbruder.wireguard.home.enable;
|
||||
listenAddress = config.sbruder.wireguard.home.address;
|
||||
enabledCollectors = [ "systemd " ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue