Cadvisor is an open source tool that provides monitoring and visualization of resource usage for running containers. In this tutorial, we will guide you through the process of installing Cadvisor on EndeavourOS Latest.
Before starting, make sure you have the following:
Follow the steps below to install Cadvisor:
sudo useradd -r -s /bin/false cadvisor
/etc/systemd/system/docker-cadvisor.service
using your favorite text editor:sudo nano /etc/systemd/system/docker-cadvisor.service
[Unit]
Description=Docker container monitoring with cAdvisor
Documentation=https://github.com/google/cadvisor
[Service]
ExecStart=/usr/bin/docker run --rm --volume=/:/rootfs:ro --volume=/var/run:/var/run:ro --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --publish=8080:8080 --detach=true --name=cadvisor google/cadvisor:latest
Restart=always
User=cadvisor
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start docker-cadvisor
sudo systemctl status docker-cadvisor
You should see the following output:
● docker-cadvisor.service - Docker container monitoring with cAdvisor
Loaded: loaded (/etc/systemd/system/docker-cadvisor.service; disabled; vendor preset: disabled)
Active: active (running) since <date> <time>
sudo systemctl enable docker-cadvisor
Congratulations! You have installed and configured Cadvisor on EndeavourOS Latest. You can now access the Cadvisor web interface at http://<server_ip>:8080
. This will provide you with feedback on the resource usage of running containers on your server.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!