nixos-config/modules/prometheus/node_exporter.nix

12 lines
339 B
Nix
Raw Normal View History

2020-08-22 17:44:39 +02:00
{ config, ... }:
{
services.prometheus.exporters.node = {
enable = config.sbruder.wireguard.home.enable;
2020-12-05 14:39:36 +01:00
listenAddress = config.sbruder.wireguard.home.address;
enabledCollectors = [ "systemd" ];
disabledCollectors = [ "rapl" ];
2020-08-22 17:44:39 +02:00
};
2020-08-22 17:56:50 +02:00
systemd.services.prometheus-node-exporter.after = [ "wireguard-wg-home.service" ];
2020-08-22 17:44:39 +02:00
}