54 lines
925 B
Nix
54 lines
925 B
Nix
{ network, config, name, ... }:
|
|
|
|
let
|
|
port = config.services.prometheus.exporters.node.port;
|
|
node = network.infra.nodes.${name};
|
|
in {
|
|
infra.firewall.allowedTCPPorts = [ port ];
|
|
|
|
services.prometheus.exporters.node = {
|
|
enable = true;
|
|
enabledCollectors = [
|
|
"arp"
|
|
"bonding"
|
|
"buddyinfo"
|
|
"cgroups"
|
|
"conntrack"
|
|
"cpu"
|
|
"cpu_vulnerabilities"
|
|
"cpufreq"
|
|
"diskstats"
|
|
"dmi"
|
|
"edac"
|
|
"entropy"
|
|
"filesystem"
|
|
"hwmon"
|
|
"interrupts"
|
|
"loadavg"
|
|
"meminfo"
|
|
"netclass"
|
|
"netdev"
|
|
"netstat"
|
|
"nvme"
|
|
"os"
|
|
"powersupplyclass"
|
|
"pressure"
|
|
"qdisc"
|
|
"rapl"
|
|
"schedstat"
|
|
"sockstat"
|
|
"softnet"
|
|
"stat"
|
|
"systemd"
|
|
"thermal_zone"
|
|
"time"
|
|
"timex"
|
|
"udp_queues"
|
|
"uname"
|
|
"vmstat"
|
|
"watchdog"
|
|
"zfs"
|
|
"zoneinfo"
|
|
];
|
|
};
|
|
}
|