Docker Community Forums

Share and learn in the Docker community.

Can not setup metrics-addr - 404 error

docker

(Slavenin) #1

Hi! I create daemon.json with content:

{
  "debug": true,
  "experimental": true,
  "metrics-addr": "127.0.0.1:1337"
}

Add iptables rule:

firewall-cmd --zone=public --add-port=1337/tcp --permanent

Restart daemon

netstat -lnp | grep 1337
tcp        0      0 127.0.0.1:1337        0.0.0.0:*               LISTEN      16178/dockerd

But in browser on 127.0.0.1:1337 i see 404 page not found

$ docker --version
Docker version 17.07.0-ce, build 8784753
$ rpm -qa | grep docker
docker-ce-17.07.0.ce-1.el7.centos.x86_64
$ docker version -f ‘{{.Server.Experimental}}’
‘true’

What wrong?


(Eldeberde) #2

hi, have you tested adding /metrics to the URL?

http://IP:PORT/metrics


(Slavenin) #3

This work! Big thanks!