Simon Bruder
2a4e358502
It does not work since the service does not have permission and therefore writes errors into the journal every scrape.
12 lines
339 B
Nix
12 lines
339 B
Nix
{ config, ... }:
|
|
{
|
|
services.prometheus.exporters.node = {
|
|
enable = config.sbruder.wireguard.home.enable;
|
|
listenAddress = config.sbruder.wireguard.home.address;
|
|
enabledCollectors = [ "systemd" ];
|
|
disabledCollectors = [ "rapl" ];
|
|
};
|
|
|
|
systemd.services.prometheus-node-exporter.after = [ "wireguard-wg-home.service" ];
|
|
}
|