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

19 lines
369 B
Nix
Raw Normal View History

2024-05-24 15:59:34 +02:00
{ 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
];
}