Add monitoring and metrics

This commit is contained in:
Paul-Henri Froidmont 2022-09-15 21:42:58 +02:00
parent 308f0da79f
commit c1211cb4e5
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
9 changed files with 4079 additions and 5 deletions

View file

@ -7,9 +7,10 @@
../modules/postgresql.nix
../modules/custom-backup-job.nix
../modules/custom-monit.nix
../modules/monitoring-exporters.nix
];
networking.firewall.interfaces."enp7s0".allowedTCPPorts = [ 5432 ];
networking.firewall.interfaces."enp7s0".allowedTCPPorts = [ config.services.prometheus.exporters.node.port config.services.postgresql.port ];
sops.secrets = {
borgSshKey = {
@ -30,5 +31,4 @@
sshKey = config.sops.secrets.borgSshKey.path;
};
networking.firewall.interfaces."ens10".allowedTCPPorts = [ 80 ];
}