node_exporter: Disable ARP netlink collector

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.
This commit is contained in:
Simon Bruder 2024-02-24 20:51:22 +01:00
parent a9f86e7ced
commit 8f1d0a149c
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -8,7 +8,10 @@
enable = config.sbruder.wireguard.home.enable; enable = config.sbruder.wireguard.home.enable;
listenAddress = config.sbruder.wireguard.home.address; listenAddress = config.sbruder.wireguard.home.address;
enabledCollectors = [ "systemd" ]; enabledCollectors = [ "systemd" ];
disabledCollectors = [ "rapl" ]; disabledCollectors = [
"arp.netlink" # https://github.com/prometheus/node_exporter/issues/2849
"rapl"
];
}; };
systemd.services.prometheus-node-exporter.after = [ "wireguard-wg-home.service" ]; systemd.services.prometheus-node-exporter.after = [ "wireguard-wg-home.service" ];