Promethous not gathering metrics until added to a existing docker bridge network.

13 views
Skip to first unread message

H T

unread,
Apr 29, 2020, 10:21:52 PM4/29/20
to Prometheus Users
Is it mandatory to add Prometheus docker container to an existing bridge network for extracting metrics ?
I Have an existing docker bridge network with few containers and i am trying to extract metrics from them. But prometheus only works when i add it to that existing bridge network

Christian Hoffmann

unread,
May 1, 2020, 2:52:19 AM5/1/20
to H T, promethe...@googlegroups.com
Per-se, there is no such need. This sounds like it may highly depend on
your setup.

Prometheus needs network access to the scrape target. If this is only
possible by using a bridge in your setup, then yes, "Prometheus needs this".

Kind regards,
Christian
Reply all
Reply to author
Forward
0 new messages