Monitoring your Docker containers using Ruxit

13 / Oct / 2015 by Ranvijay Jamwal 0 comments

Docker monitoring is very important when it comes to using Docker. In my last blog, I talked about how we can monitor the status of a Docker container using a bash script and AWS CloudWatch. In this blog, I will be telling you how to get insights of your Docker container using a tool called Ruxit.

Ruxit

Ruxit is a tool that I found as I was browsing through web pages to find the best monitoring tool for Docker. It gives you deep insights of what is running inside your containers and how the services are performing. Also, what resources are being used by those containers?

Use-case

I had to find a way to monitor my Docker containers. I decided to do the monitoring by using the Ruxit tool. I will show you how to install the Ruxit agent on your Docker host machine and then see what all insights we can get.

Prerequisites

1. Docker installed on your linux host machine.
2. A live Docker container running any application server via any web server.

Steps

1. Installing Ruxit:

Login to your Ruxit account after creating an account at www.ruxit.com
You will see a screen like below:
Home   tvn69423   Ruxit

On the right top corner, you will see a menu button, the one I have highlighted. Click on that and it should open something like:
Home   tvn69423   Ruxit2

Now, click on Monitor another host and it will take you to a page as shown in the below image:
Download Ruxit Agent   tvn69423   Ruxit

Go ahead and choose Linux to move ahead to the below shown page:
Install Ruxit Agent on your Linux hosts   tvn69423   Ruxit

Just copy the first command and run it on your host machine. Similarly, run the second command on your host machine and press Next.
Run Ruxit Agent to monitor your hosts   tvn69423   Ruxit

2. Using Ruxit:

The above shall start Ruxit agent on your host machine. It will return a URL as well. Now, just hit that URL in your browser. It will take you to the Ruxit Dashboard and show you your containers:
Edit Post ‹ TO THE NEW Blog — WordPress1

The object in the red box is the container. I have one container running on my host machine. And the container IP is shown. If I click on the icon it will expand and show what is running inside my Docker container:
Edit Post ‹ TO THE NEW Blog — WordPress2

It shows 4 processes running inside the container. In my case, the main process in Apache Web Server httpd since my container is CentOS based. Other services installed are sendmail etc.

Now, just click on the button next to the text “Apache Web Server httpd” which has a small arrow present there. It should open the following:
Screenshot from 2015-09-23 16:11:10

You can view the following stats as shown in the above image.:

  • Response time
  • Slowest response time
  • Dynamic Reports
  • Resources reports
  • Graphs for respective metrics
  • On the right-hand side, you will see other stats like:
    • CPU-intensive requests
    • requests at / location of the website
    • Time for JS to load etc.

There is a wide range of stats you can see here. If you scroll down you can see many graphs on the left:
Screenshot from 2015-09-23 16:12:16

A few more details can be looked at by clicking Apache web server:
Screenshot from 2015-09-23 16:13:25

It will take you to the following page giving you more insights:
Screenshot from 2015-09-23 16:14:27

System performance can also be analysed:
Screenshot from 2015-09-23 16:14:52

Now, click on Web server to get insights like:
Screenshot from 2015-09-23 16:15:19

So, that’s what you can do using the Ruxit monitoring tool for Docker. You can monitor any number of Docker containers. Ruxit will be adding more functionalities soon. Be tuned into my blogs and follow me on twitter @ranvijayj

FOUND THIS USEFUL? SHARE IT

Leave a Reply

Your email address will not be published. Required fields are marked *