Compare commits

...

5 commits

Author SHA1 Message Date
Gonne Kretschmer
b2f0945473 Improve comment explaining metrics selection 2023-11-06 12:47:55 +01:00
Gonne Kretschmer
a41d377f96 Reenable nfs collector 2023-11-03 16:46:26 +01:00
Gonne Kretschmer
2c2b24d0a9 Setup Impermanence 2023-11-03 16:43:27 +01:00
Gonne Kretschmer
1de0d32860 Prometheus Node Exporter metrics configured. 2023-10-27 16:14:48 +02:00
Gonne Kretschmer
559c5a47ad Enable prometheus node exporter by default 2023-10-25 10:25:18 +00:00
2 changed files with 41 additions and 0 deletions

View file

@ -3,6 +3,7 @@
imports = [
./admins.nix
./nix_keys.nix
./prometheusNodeExporter.nix
(modulesPath + "/virtualisation/xen-domU.nix")
../modules/impermanence.nix
];

View file

@ -0,0 +1,40 @@
{config, ...}:
{
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
# It was compiled along the following steps:
# 1. Does the current Debian release supports the collector?
# 2. Is the collector depracated in the latest release?
# 3. Could you probably use the collected metrics for monitoring or are they useless because they make no sense in our context
# (e.g. power adapter inside a VM, use fibre port connection)?
disabledCollectors = [
"arp"
"bcache"
"btrfs"
"dmi"
"fibrechannel"
"infiniband"
"nvme"
"powersupplyclass"
"rapl"
"selinux"
"tapestats"
"thermal_zone"
"udp_queues"
"xfs"
"zfs"
];
enabledCollectors = [
"buddyinfo"
"ksmd"
"logind"
"mountstats"
"processes"
];
};
networking.firewall.allowedTCPPorts = [ 9100 ];
environment.persistence.${config.impermanence.name}.directories = [ "/var/lib/${config.services.prometheus.stateDir}" ];
}