1
0

modules/monitoring-3: expose systemd units

This commit is contained in:
clerie 2023-04-30 20:57:42 +02:00
parent f2d91c9820
commit 33db62362f

View File

@ -58,6 +58,9 @@ in
#listenAddress = "${monitoring-network-base}${cfg.id}"; #listenAddress = "${monitoring-network-base}${cfg.id}";
openFirewall = true; openFirewall = true;
firewallFilter = "-i wg-monitoring -p tcp -m tcp --dport 9100"; firewallFilter = "-i wg-monitoring -p tcp -m tcp --dport 9100";
enabledCollectors = [
"systemd"
];
}; };
systemd.services."prometheus-node-exporter".serviceConfig.RestrictAddressFamilies = [ "AF_NETLINK" ]; systemd.services."prometheus-node-exporter".serviceConfig.RestrictAddressFamilies = [ "AF_NETLINK" ];