defiant/metrics: Remove zfs exporter, fix snmp exporter
This commit is contained in:
@@ -11,19 +11,6 @@
|
||||
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||
};
|
||||
services.zfs.autoScrub.enable = true;
|
||||
services.prometheus.exporters.zfs = {
|
||||
enable = true;
|
||||
# "ip46" is cursed, do it manually below
|
||||
# openFirewall = true;
|
||||
# firewallFilter = "-p tcp -m tcp --source 192.168.10.175/32 --dport 9134";
|
||||
};
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 9134 ];
|
||||
extraCommands = ''
|
||||
iptables -A INPUT -p tcp -m tcp --source 192.168.10.175/32 --dport 9134 -j ACCEPT
|
||||
iptables -A INPUT -p tcp -m tcp --dport 9134 -j DROP
|
||||
'';
|
||||
};
|
||||
|
||||
# Network mounts (import)
|
||||
fileSystems = {
|
||||
|
||||
Reference in New Issue
Block a user