Add bird to monitoring
This commit is contained in:
@@ -21,6 +21,7 @@ in
|
||||
type = types.str;
|
||||
description = "Public Key of the monitoring wireguard interface of this host";
|
||||
};
|
||||
bird = mkEnableOption "Monitor bird";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -47,5 +48,11 @@ in
|
||||
openFirewall = true;
|
||||
firewallFilter = "-i wg-monitoring -p tcp -m tcp --dport 9100";
|
||||
};
|
||||
|
||||
services.prometheus.exporters.bird = mkIf cfg.bird {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
firewallFilter = "-i wg-monitoring -p tcp -m tcp --dport 9324";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user