Simon Bruder
8f1d0a149c
It currently fails (logging an error message on every scrape). This disables the netlink collector, making it fall back to reading ARP entries from /proc/net/arp.
19 lines
543 B
Nix
19 lines
543 B
Nix
# SPDX-FileCopyrightText: 2020-2021 Simon Bruder <simon@sbruder.de>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
{ config, ... }:
|
|
{
|
|
services.prometheus.exporters.node = {
|
|
enable = config.sbruder.wireguard.home.enable;
|
|
listenAddress = config.sbruder.wireguard.home.address;
|
|
enabledCollectors = [ "systemd" ];
|
|
disabledCollectors = [
|
|
"arp.netlink" # https://github.com/prometheus/node_exporter/issues/2849
|
|
"rapl"
|
|
];
|
|
};
|
|
|
|
systemd.services.prometheus-node-exporter.after = [ "wireguard-wg-home.service" ];
|
|
}
|