r/PrometheusMonitoring • u/Celebrimbor-y • Sep 09 '26
problems with resolving docker metrics-endpoint with prometheus
Hi, I just tried to enable the docker metrics in /etc/docker/daemon.json, and it worked just fine right on the machine, but i could not reach it with prometheus.
I deployed it in a docker container, but
- targets: ["host.docker.internal:9323"]
does not resolve to the 0.0.0.0:9323 correctly.
What is the internal docker Hack to get the metrics inside of the docker container (may you recognized i am a container-noob).
Thanks a lot for help.
2
Upvotes
View all comments
Show parent comment
2
u/zeddjb Sep 10 '26
This is the answer.