pgsql
This commit is contained in:
parent
279368432b
commit
f960c5863e
2 changed files with 14 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
../../services/openssh.nix
|
||||
../../services/prometheus-node.nix
|
||||
./postgres.nix
|
||||
./prometheus-postgres.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
|||
13
hosts/sql/prometheus-postgres.nix
Normal file
13
hosts/sql/prometheus-postgres.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.prometheus.exporters.postgres = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
firewallRules = ''
|
||||
ip saddr 195.160.173.14/32 tcp dport ${toString config.services.prometheus.exporters.postgres.port} accept comment "Allow prometheus on monitoring.berlin.ccc.der"
|
||||
ip6 saddr 2001:678:760:cccb::14/128 tcp dport ${toString config.services.prometheus.exporters.postgres.port} accept comment "Allow prometheus on monitoring.berlin.ccc.der"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue