"No metrics available" for deployed Kafka Connect connectors in Lenses

I’m getting the message:

No metrics available

In Lenses for my Kafka Connect Connectors. I know the connectors are working correctly.

Try setting --net=host when running the Docker and disabling the firewall and see if it works:

systemctl stop firewalld