How To Install cadvisor on CentOS 7
Introduction
In this tutorial we learn how to install cadvisor
on CentOS 7.
What is cadvisor
Analyzes 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. It is a running 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. cAdvisor currently supports lmctfy containers as well as Docker containers (those that use the default libcontainer execdriver). Other container backends can also be added. cAdvisor’s container abstraction is based on lmctfy’s so containers are inherently nested hierarchically.
We can use yum
or dnf
to install cadvisor
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install cadvisor.
Install cadvisor on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install cadvisor
using yum
by running the following command:
Install cadvisor on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install cadvisor
using dnf
by running the following command:
How To Uninstall cadvisor on CentOS 7
To uninstall only the cadvisor
package we can use the following command:
References
Summary
In this tutorial we learn how to install cadvisor
on CentOS 7 using yum
and dnf
.