mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
19 lines
369 B
Nix
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
|
|
];
|
|
}
|