nixos-config/modules/prometheus/node_exporter.nix

19 lines
543 B
Nix
Raw Permalink Normal View History

# SPDX-FileCopyrightText: 2020-2021 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
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 = [
"arp.netlink" # https://github.com/prometheus/node_exporter/issues/2849
"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
}