add prometheus node exporter
This commit is contained in:
@@ -23,6 +23,7 @@ in
|
|||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
./incus.nix
|
./incus.nix
|
||||||
./drives.nix
|
./drives.nix
|
||||||
|
./prometheus.nix
|
||||||
#./auto-upgrade.nix
|
#./auto-upgrade.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
12
prometheus.nix
Normal file
12
prometheus.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user