add postgres monitoring

This commit is contained in:
garionion 2021-06-14 16:36:30 +02:00
parent c2b164bddd
commit 92f0120c47
Signed by: garionion
GPG key ID: 53352FA607FA681A
3 changed files with 49 additions and 3 deletions

View file

@ -72,6 +72,13 @@
}
];
};
services.prometheus.exporters.postgres = {
enable = true;
port = 9101;
runAsLocalSuperUser = true;
openFirewall = true;
firewallFilter = "-i wg-monitoring -p tcp -m tcp --dport 9101";
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = {