add prometheus nginx
This commit is contained in:
parent
6cd9050111
commit
279368432b
5 changed files with 18 additions and 1 deletions
13
services/prometheus-nginx.nix
Normal file
13
services/prometheus-nginx.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.prometheus.exporters.nginx = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
firewallRules = ''
|
||||
ip saddr 195.160.173.14/32 tcp dport ${toString config.services.prometheus.exporters.nginx.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.nginx.port} accept comment "Allow prometheus on monitoring.berlin.ccc.der"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue