chore(monitoring): ignore unsupported exporter

This commit is contained in:
arcnmx 2024-11-20 14:15:41 -08:00
parent de12febf68
commit 52e89c43c0

View file

@ -68,7 +68,7 @@ in {
};
networking.firewall.interfaces.lan.allowedTCPPorts = let
# blacklist broken/deprecated exporters
allExporters = removeAttrs config.services.prometheus.exporters ["unifi-poller" "minio"];
allExporters = removeAttrs config.services.prometheus.exporters ["unifi-poller" "minio" "tor"];
enablePort = fallback: exporter: exporter.enable or fallback && !exporter.openFirewall or (!fallback);
mkExporterPorts = name: exporters': let
exporters = toList exporters';