How many machines do you have on your network that run Docker containers? One? Two? 20?Now, how are those machines and containers performing? How quickly can you log into those machines and run the necessary commands to suss out that information? Even better, do you know the commands required to do this?What if I told you you could deploy a container on one machine and then deploy agents on every server you need to monitor? And what if I told you this could all be done via Docker, and it’s really easy? The end result is a single dashboard that gives you quick access to resource usage for those machines used for your container deployments.That container is called Beszel, and it’s capable of displaying Docker statistics, historical data and alert functions.The feature set of Beszel includes:A user-friendly web interfaceSimple configurationAutomatic backup supportMultiuserOAuth authenticationAPI accessIt’s easy enough to deploy and use that you’ll consider it a no-brainer.Let me show you how to deploy Beszel and connect an agent so you can keep track of your Docker server’s system resources.What You’ll NeedThe only things you’ll need are more than one machine that supports Docker. I’m going to demonstrate this on Ubuntu 24.04, so if you’re using a different OS, you’ll need to alter the Docker installation process.Installing DockerIf you’re looking into monitoring the resources of your servers that run Docker containers, you probably already have Docker installed. On the off chance you don’t, here’s how (otherwise, skip to the next section).1. Add the official Docker GPG key with the commands:2. Add the required Docker repository with the commands:3. Install the required software with the following command:4. Add your user to the Docker group:To run the Docker command as a standard user, you’ll need to add that user to the Docker group. This is done so you can run the Docker command without sudo privileges. Add your user to the Docker group with:Log out and log back in so the changes take effect.Deploying BeszelWe can now deploy the Beszel hub. To that, we’ll use the docker run command like so:Give this a minute or two to spin up. After that time has passed, open a web browser and point it to:Where SERVER is the IP address of the hosting server.You should be presented with an account creation page. Once you’ve done that, log in and you’ll see the Beszel main window (Figure 1).Figure 1. The Beszel hub is now ready to accept connections from agents.Deploying the AgentsIn the upper right-hand corner, click Add System. A pop-up will appear (Figure 2), asking you to fill out the information for the server you want to monitor. Add a name and the host IP address.Figure 2. Fill out the information to add a new system.Next, click “Copy Docker compose,” which will copy the necessary contents for agent deployments.Log into the first machine you want to monitor and create a new docker-compose.yaml file with the command:Paste the copied content into the new file. That content should look like this:Save and close the file.Deploy the agent with the command:The agent will deploy, and within minutes, you can refresh the web page for the hub, and the new server will be listed.You can then deploy the agent on every machine you need to monitor.Once the agents appear, you can view their resource usage and also click the container button at the top (looks like a small 3D rectangle) to view the resource usage of every container deployed on that machine (Figure 3). The listing will also show the health status of each container.Figure 3. All your containers are belong to us!Now that is handy.If you need to keep tabs on the resource usage of your containers, as well as the health status, Beszel is one of the best options I’ve found that is free and easy to use. Give Beszel a try and see if it doesn’t make monitoring those containers considerably easier.The post Monitor Docker Containers Across Servers With Beszel appeared first on The New Stack.