Only enable node exporter when wg-home is enabled

This commit is contained in:
Simon Bruder 2020-12-22 12:09:14 +01:00
parent b0117ae7fa
commit e487cf4720
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

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