diff options
author | makefu <github@syntax-fehler.de> | 2018-05-03 18:45:55 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-05-03 18:45:55 +0200 |
commit | 8156ab92378422d36d0af55c8d4b3b5742f4305c (patch) | |
tree | fcbcb08991681dcd24a88d7a9bac7f22840df575 /lass/2configs/monitoring/node-exporter.nix | |
parent | 45377068c0bfbb009b7cbe41dbca97dd44c9c955 (diff) | |
parent | 28d6704a0d617ca7d379b836ab9fdd4d6a0be868 (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'lass/2configs/monitoring/node-exporter.nix')
-rw-r--r-- | lass/2configs/monitoring/node-exporter.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lass/2configs/monitoring/node-exporter.nix b/lass/2configs/monitoring/node-exporter.nix index 8c27e90d4..561e3a25c 100644 --- a/lass/2configs/monitoring/node-exporter.nix +++ b/lass/2configs/monitoring/node-exporter.nix @@ -1,7 +1,9 @@ { config, lib, pkgs, ... }: { - networking.firewall.allowedTCPPorts = [ 9100 ]; - + krebs.iptables.tables.filter.INPUT.rules = [ + { predicate = "-i retiolum -p tcp --dport 9100 -s ${config.krebs.hosts.prism.nets.retiolum.ip4.addr}"; target = "ACCEPT"; v6 = false; } + { predicate = "-i retiolum -p tcp --dport 9100 -s ${config.krebs.hosts.prism.nets.retiolum.ip6.addr}"; target = "ACCEPT"; v4 = false; } + ]; services.prometheus.exporters = { node = { enable = true; |