You can use any monitoring tools like ELK or Grafana. This will give you a user-friendly graph in real-time. Or you can retrieve the metrics of your docker container. By default it is disabled. But you can enable this by using the below-given steps.
- 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.