nixos-config/modules/prometheus/node_exporter.nix

16 lines
455 B
Nix
Raw 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 = [ "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
}