{"id":26104,"date":"2015-10-13T15:15:56","date_gmt":"2015-10-13T09:45:56","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=26104"},"modified":"2016-12-19T15:35:44","modified_gmt":"2016-12-19T10:05:44","slug":"docker-monitoring-using-ruxit","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/docker-monitoring-using-ruxit\/","title":{"rendered":"Monitoring your Docker containers using Ruxit"},"content":{"rendered":"<p>Docker monitoring is very important when it comes to using Docker. In my last blog, I talked about how we can <a href=\"http:\/\/www.tothenew.com\/blog\/monitoring-docker-container-status-using-aws-cloudwatch\/\">monitor the status of a Docker container using a bash script and AWS CloudWatch<\/a>. In this blog, I will be telling you how to get insights of your Docker container using a tool called <strong>Ruxit<\/strong>.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-28230 aligncenter\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Ruxit.png\" alt=\"Ruxit\" width=\"562\" height=\"215\" \/><\/p>\n<p>Ruxit is a tool that I found as I was browsing through web pages to find the best monitoring tool for <a href=\"http:\/\/www.tothenew.com\/devops-chef-puppet-docker\">Docker<\/a>. 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?<\/p>\n<h3><span style=\"text-decoration: underline\">Use-case<\/span><\/h3>\n<p>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.<\/p>\n<h3><span style=\"text-decoration: underline\">Prerequisites<\/span><\/h3>\n<p>1. Docker installed on your linux host machine.<br \/>\n2. A live Docker container running any application server via any web server.<\/p>\n<h3><span style=\"text-decoration: underline\">Steps<\/span><\/h3>\n<h4>1. <span style=\"text-decoration: underline\">Installing Ruxit:<\/span><\/h4>\n<p>Login to your Ruxit account after creating an account at www.ruxit.com<br \/>\nYou will see a screen like below:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-28033\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Home-tvn69423-Ruxit.png\" alt=\"Home   tvn69423   Ruxit\" width=\"1365\" height=\"649\" \/><\/p>\n<p>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:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-28034 aligncenter\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Home-tvn69423-Ruxit2.png\" alt=\"Home   tvn69423   Ruxit2\" width=\"382\" height=\"403\" \/><\/p>\n<p>Now, click on <strong>Monitor another host\u00a0<\/strong>and it will take you to a page as shown in the below image:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-28036\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Download-Ruxit-Agent-tvn69423-Ruxit.png\" alt=\"Download Ruxit Agent   tvn69423   Ruxit\" width=\"674\" height=\"208\" \/><\/p>\n<p>Go ahead and choose Linux to move ahead to the below shown page:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-28037\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Install-Ruxit-Agent-on-your-Linux-hosts-tvn69423-Ruxit.png\" alt=\"Install Ruxit Agent on your Linux hosts   tvn69423   Ruxit\" width=\"674\" height=\"335\" \/><\/p>\n<p>Just copy the first command and run it on your host machine. Similarly, run the second command on your host machine and press <strong>Next<\/strong>.<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-28038\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Run-Ruxit-Agent-to-monitor-your-hosts-tvn69423-Ruxit.png\" alt=\"Run Ruxit Agent to monitor your hosts   tvn69423   Ruxit\" width=\"627\" height=\"172\" \/><\/p>\n<h4>2. <span style=\"text-decoration: underline\">Using\u00a0Ruxit:<\/span><\/h4>\n<p>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\u00a0Dashboard and show you your containers:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-28166\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Edit-Post-\u2039-TO-THE-NEW-Blog-\u2014-WordPress1.png\" alt=\"Edit Post \u2039 TO THE NEW Blog \u2014 WordPress1\" width=\"625\" height=\"359\" \/><\/p>\n<p>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:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-28170\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Edit-Post-\u2039-TO-THE-NEW-Blog-\u2014-WordPress2.png\" alt=\"Edit Post \u2039 TO THE NEW Blog \u2014 WordPress2\" width=\"628\" height=\"303\" \/><\/p>\n<p>It shows 4 processes running inside the container. In my case, the main process in <strong>Apache Web Server <\/strong>httpd<strong>\u00a0<\/strong>since my container is CentOS based. Other services installed are sendmail etc.<\/p>\n<p>Now, just click on the button next to the text &#8220;<strong>Apache Web Server httpd<\/strong>&#8221; which has a small arrow present there. It should open the following:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-28172\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Screenshot-from-2015-09-23-161110.png\" alt=\"Screenshot from 2015-09-23 16:11:10\" width=\"799\" height=\"386\" \/><\/p>\n<p>You can view the following stats as shown in the above image.:<\/p>\n<ul>\n<li>Response time<\/li>\n<li>Slowest response time<\/li>\n<li>Dynamic Reports<\/li>\n<li>Resources reports<\/li>\n<li>Graphs for respective metrics<\/li>\n<li>On the right-hand side, you will see other stats like:\n<ul>\n<li>CPU-intensive requests<\/li>\n<li>requests at \/ location of the website<\/li>\n<li>Time for JS to load etc.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>There is a wide range of stats you can see here. If you scroll down you can see many graphs on the left:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-28180\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Screenshot-from-2015-09-23-161216.png\" alt=\"Screenshot from 2015-09-23 16:12:16\" width=\"1422\" height=\"552\" \/><\/p>\n<p>A few more details can be looked at by clicking <strong>Apache web server:<br \/>\n<\/strong><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-28183\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Screenshot-from-2015-09-23-161325.png\" alt=\"Screenshot from 2015-09-23 16:13:25\" width=\"1335\" height=\"540\" \/><\/p>\n<p>It will take you to the following page giving you more insights:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-28184\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Screenshot-from-2015-09-23-161427.png\" alt=\"Screenshot from 2015-09-23 16:14:27\" width=\"705\" height=\"309\" \/><\/p>\n<p><strong>System performance<\/strong> can also be analysed:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-28185\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Screenshot-from-2015-09-23-161452.png\" alt=\"Screenshot from 2015-09-23 16:14:52\" width=\"709\" height=\"374\" \/><\/p>\n<p>Now, click on <strong>Web server<\/strong> to get insights like:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-28187\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/09\/Screenshot-from-2015-09-23-1615191.png\" alt=\"Screenshot from 2015-09-23 16:15:19\" width=\"691\" height=\"312\" \/><\/p>\n<p>So, that&#8217;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 <strong>@ranvijayj<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":174,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":19},"categories":[1174,2348],"tags":[248,1891,1883,2412,2565,2608,2564,2611,2610,2609,2612],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/26104"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/174"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=26104"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/26104\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=26104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=26104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=26104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}