add prometheus nginx

This commit is contained in:
XenGi 2026-02-18 00:14:31 +01:00
parent 6cd9050111
commit 279368432b
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg
5 changed files with 18 additions and 1 deletions

View 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"
'';
};
}