nixos-config/hosts/fujitsu/modules/monitoring/default.nix

15 lines
265 B
Nix
Raw Normal View History

2024-05-24 15:59:34 +02:00
{ config, ... }:
{
services.prometheus = {
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
};
};
};
networking.firewall.allowedTCPPorts = [
config.services.prometheus.exporters.node.port
];
}