How To Install cadvisor on Fedora 36

In this tutorial we learn how to install cadvisor in Fedora 36. cadvisor is Analyzes resource usage and performance characteristics of running containers

Introduction

In this tutorial we learn how to install cadvisor on Fedora 36.

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 36. In this tutorial we discuss both methods but you only need to choose one of method to install cadvisor.

Install cadvisor on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install cadvisor using dnf by running the following command:

sudo dnf -y install cadvisor

Install cadvisor on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 36

To uninstall only the cadvisor package we can use the following command:

sudo dnf remove cadvisor

cadvisor Package Contents on Fedora 36

/etc/sysconfig/cadvisor
/usr/bin/cadvisor
/usr/lib/.build-id
/usr/lib/.build-id/96
/usr/lib/.build-id/96/d7aa316825d94535777e42c190606f3c2a1010
/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 36 using yum and [dnf]((/fedora/36/dnf/).