How To Install cadvisor on Fedora 34
Introduction
In this tutorial we learn how to install cadvisor
on Fedora 34.
What is cadvisor
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 has native support for Docker containers and should support just about any other container type out of the box. We strive for support across the board so feel free to open an issue if that is not the case. 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install cadvisor.
Install cadvisor on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install cadvisor
using dnf
by running the following command:
sudo dnf -y install cadvisor
Install cadvisor on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install cadvisor
using yum
by running the following command:
sudo yum -y install cadvisor
How To Uninstall cadvisor on Fedora 34
To uninstall only the cadvisor
package we can use the following command:
sudo dnf remove cadvisor
cadvisor Package Contents on Fedora 34
/etc/sysconfig/cadvisor
/usr/bin/cadvisor
/usr/lib/.build-id
/usr/lib/.build-id/76
/usr/lib/.build-id/76/55f2367970ad735d5f060ddd80c0a6cc70370e
/usr/lib/systemd/system/cadvisor.service
/usr/share/doc/cadvisor
/usr/share/doc/cadvisor/AUTHORS
/usr/share/doc/cadvisor/CHANGELOG.md
/usr/share/doc/cadvisor/CONTRIBUTING.md
/usr/share/doc/cadvisor/README.md
/usr/share/doc/cadvisor/docs
/usr/share/doc/cadvisor/docs/api.md
/usr/share/doc/cadvisor/docs/api_v2.md
/usr/share/doc/cadvisor/docs/application_metrics.md
/usr/share/doc/cadvisor/docs/clients.md
/usr/share/doc/cadvisor/docs/deploy.md
/usr/share/doc/cadvisor/docs/development
/usr/share/doc/cadvisor/docs/development/README.md
/usr/share/doc/cadvisor/docs/development/build.md
/usr/share/doc/cadvisor/docs/development/integration_testing.md
/usr/share/doc/cadvisor/docs/development/issues.md
/usr/share/doc/cadvisor/docs/development/releasing.md
/usr/share/doc/cadvisor/docs/running.md
/usr/share/doc/cadvisor/docs/runtime_options.md
/usr/share/doc/cadvisor/docs/storage
/usr/share/doc/cadvisor/docs/storage/README.md
/usr/share/doc/cadvisor/docs/storage/elasticsearch.md
/usr/share/doc/cadvisor/docs/storage/influxdb.md
/usr/share/doc/cadvisor/docs/storage/kafka.md
/usr/share/doc/cadvisor/docs/storage/prometheus.md
/usr/share/doc/cadvisor/docs/storage/statsd.md
/usr/share/doc/cadvisor/docs/web.md
/usr/share/licenses/cadvisor
/usr/share/licenses/cadvisor/LICENSE
References
Summary
In this tutorial we learn how to install cadvisor
on Fedora 34 using yum and dnf.