2024-01-06 01:19:35 +01:00
|
|
|
# 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 = {
|
2020-12-22 12:09:14 +01:00
|
|
|
enable = config.sbruder.wireguard.home.enable;
|
2020-12-05 14:39:36 +01:00
|
|
|
listenAddress = config.sbruder.wireguard.home.address;
|
2021-02-21 00:04:26 +01:00
|
|
|
enabledCollectors = [ "systemd" ];
|
2024-02-24 20:51:22 +01:00
|
|
|
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
|
|
|
}
|