add prometheus node exporter

This commit is contained in:
RootHost-Stormwind
2025-08-06 08:38:35 +02:00
parent 1f930f6e1d
commit 9158a76ac8
2 changed files with 13 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ in
./tailscale.nix
./incus.nix
./drives.nix
./prometheus.nix
#./auto-upgrade.nix
];

12
prometheus.nix Normal file
View File

@@ -0,0 +1,12 @@
{ config, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 9100 ];
services.prometheus.exporters.node = {
enable = true;
port = 9100;
enabledCollectors = [ "systemd" ];
extraFlags = [ "--collector.ethtool" "--collector.softirqs" "--collector.tcpstat" "--collector.wifi" ];
};
}