Docker container access

Hi,

I have a nomad cluster running also consul agent on each host (not containerized). I have deploy a prometheus job with the configuration to go to consul the thing is, what’s the best way to connect? Should I use network host? Consul is listening on loopback only. How can I have my containers connecting to consul DNS and get, in the case of prometheus, scrapes from all the other hosts?

Thanks,
Bruno