Application metrics from all docker containers running on a compute when Telegraf is running on compute host

We have different dockerized application running on a single compute. Earlier we were using the HTTP Listener plugin to which every application was sending metrics data from there docker containers. But now we can’t do it. So is there is any option i can get metrics data from all the containers.

One solution i can think of is if i can get list of all the container IPs and then calling fixed URL on every service. i.e expose metrics information in prometheus style. (But for that i need dynamic list of IPs/Port which are running in the telegraf plugin and call that URL)

Would running the docker plugin from the host work for you?