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

19 lines
369 B
Nix

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