cadvisor">Cadvisor is an open-source tool from Google that provides container metrics like CPU, memory, network usage, and more. It also helps in analyzing the performance of containers. Here's how you can install Cadvisor on Windows 11.
Open Git Bash on your Windows 11 machine and run the following command to clone the Cadvisor repository.
git clone https://github.com/google/cadvisor.git
This will download the repository to your current directory.
Open a new PowerShell window and navigate to the cloned repository. Run the following command to build the Cadvisor Docker image.
docker build -t cadvisor:v1.0.0 .
This will build the Docker image of Cadvisor with tag v1.0.0
.
Once the Docker image is created, run the following command to start a new Cadvisor container.
docker run -d -p 8080:8080 --name cadvisor cadvisor:v1.0.0
This will start a new container with the name cadvisor
and port 8080 exposed on your local machine.
Open your web browser and go to http://localhost:8080
to access the Cadvisor web UI. You can see all the metrics related to the Docker containers running on your system.
To stop the Cadvisor container, run the following command in your PowerShell window.
docker stop cadvisor
This will stop the container named cadvisor
.
To remove the Cadvisor container from your system, run the following command.
docker rm cadvisor
This will remove the container named cadvisor
.
That's it! You have successfully installed and run Cadvisor on Windows 11. With Cadvisor, you can get the metrics related to your Docker containers and analyze their performance with ease.
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!