mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2025-08-19 03:16:45 +02:00
allow prometheus to access metrics
This commit is contained in:
10
modules/monitoring.nix
Normal file
10
modules/monitoring.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
# Allow Mic92's prometheus server to access telegraf
|
||||
networking.firewall.extraCommands = ''
|
||||
ip6tables -A nixos-fw -p tcp --source 2a03:4000:62:fdb::/128 --dport 9273 -j nixos-fw-accept
|
||||
'';
|
||||
networking.firewall.extraStopCommands = ''
|
||||
ip6tables -D nixos-fw -p tcp --source 2a03:4000:62:fdb::/128 --dport 9273 -j nixos-fw-accept || true
|
||||
'';
|
||||
}
|
||||
|
Reference in New Issue
Block a user