add postgres monitoring
This commit is contained in:
parent
c2b164bddd
commit
92f0120c47
3 changed files with 49 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue