By default, docker will not allow you to monitor its metrics. For that you have to configure your docker. You can use the below code to configure your docker engine.
- Go to your /etc/docker folder and create one file named daemon.json. Inside this file write down these below lines.
"metrics-addr" : "0.0.0.0:9323",
"experimental" : true
- After that restart your docker engine.
$ systemctl restart docker.
- Now you can browse your docker metrics.
Hope this is helpful.