Dial tcp 127.0.0.1:8086: connect: connection refused" changing state to=alerting

docker inspect name-container

Go to the end, Networks → Gateway

Add → prometheus.yml

targets: IP-GATEWAY:8086