Prometheus Node Exporter metrics configured.
This commit is contained in:
parent
559c5a47ad
commit
1b1bf736db
2 changed files with 41 additions and 7 deletions
|
@ -3,6 +3,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./admins.nix
|
./admins.nix
|
||||||
./nix_keys.nix
|
./nix_keys.nix
|
||||||
|
./prometheusNodeExporter.nix
|
||||||
(modulesPath + "/virtualisation/xen-domU.nix")
|
(modulesPath + "/virtualisation/xen-domU.nix")
|
||||||
../modules/impermanence.nix
|
../modules/impermanence.nix
|
||||||
];
|
];
|
||||||
|
@ -55,12 +56,5 @@ services = {
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
prometheus.exporters.node = {
|
|
||||||
enable = true;
|
|
||||||
port = 9100;
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
# Prometheus Monitoring
|
|
||||||
networking.firewall.allowedTCPPorts = [ 9100 ];
|
|
||||||
}
|
}
|
||||||
|
|
40
nixos/roles/prometheusNodeExporter.nix
Normal file
40
nixos/roles/prometheusNodeExporter.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
imports = [ ];
|
||||||
|
services.prometheus.exporters.node = {
|
||||||
|
enable = true;
|
||||||
|
port = 9100;
|
||||||
|
# Aligned with https://git.rwth-aachen.de/fsdmath/server/prometheus/-/blob/main/node_exporter/etc/default/prometheus-node-exporter
|
||||||
|
# Original reasons are for these lists are unknown, but along the lines
|
||||||
|
# “This looks useless for VMs, but that seems nice.”
|
||||||
|
disabledCollectors = [
|
||||||
|
"arp"
|
||||||
|
"bcache"
|
||||||
|
"btrfs"
|
||||||
|
"boottime"
|
||||||
|
"dmi"
|
||||||
|
"exec"
|
||||||
|
"fibrechannel"
|
||||||
|
"infiniband"
|
||||||
|
"netisr"
|
||||||
|
"nfs"
|
||||||
|
"nvme"
|
||||||
|
"powersupplyclass"
|
||||||
|
"rapl"
|
||||||
|
"selinux"
|
||||||
|
"tapestats"
|
||||||
|
"thermal"
|
||||||
|
"thermal_zone"
|
||||||
|
"udp_queues"
|
||||||
|
"xfs"
|
||||||
|
"zfs"
|
||||||
|
];
|
||||||
|
enabledCollectors = [
|
||||||
|
"buddyinfo"
|
||||||
|
"ksmd"
|
||||||
|
"logind"
|
||||||
|
"mountstats"
|
||||||
|
"processes"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [ 9100 ];
|
||||||
|
}
|
Loading…
Reference in a new issue