nixos-config/hosts/fujitsu/modules/monitoring/default.nix
2024-05-24 15:59:34 +02:00

15 lines
265 B
Nix

{ config, ... }:
{
services.prometheus = {
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
};
};
};
networking.firewall.allowedTCPPorts = [
config.services.prometheus.exporters.node.port
];
}