Install cadvisor by entering the following commands in the terminal:
sudo apt update sudo apt install cadvisor
analyze resource usage and performance characteristics of running containers
cAdvisor (Container Advisor) provides container users an understanding of the resource usage and performance characteristics of their running containers. . cAdvisor has native support for Docker containers and should support just about any other container type out of the box. . cAdvisor also exposes container stats as Prometheus (http://prometheus.io) metrics. . This package provides daemon that collects, aggregates, processes, and exports information about running containers. Specifically, for each container it keeps resource isolation parameters, historical resource usage, histograms of complete historical resource usage and network statistics. This data is exported by container and machine-wide.