configuration.nix/hosts/shared/prometheus-exporters.nix
2024-11-17 14:06:46 +05:30

23 lines
530 B
Nix

{ config, ... }: {
services = {
prometheus.exporters = {
node = {
enable = true;
listenAddress = config.nodeconfig.facts.wireguard-ip;
port = 9100;
enabledCollectors = [ "systemd" "processes" ];
};
smartctl = {
enable = true;
listenAddress = config.nodeconfig.facts.wireguard-ip;
port = 9633;
};
systemd = {
enable = true;
listenAddress = config.nodeconfig.facts.wireguard-ip;
port = 9558;
};
};
};
}