You are here

Blog

How to Simplify Memory and Disk Utilization Monitoring in AWS

Amazon Web Services CloudWatch is a monitoring tool that surfaces many metrics within your AWS cloud. These metrics help you keep track of your instance performance. However, CloudWatch doesn’t readily surface all of the information you might be looking for. Since AWS does not have access to your OS, some metrics are missing including disk and memory utilization.

Have a look at all of our AWS monitoring integrations.

 

AWS has how-to instructions on creating memory, disk and swap checks via Perl scripts located at https://aws.amazon.com/code/8720044071969977. These scripts are manual and need cron to be configured to use designated intervals, every 5 minutes, for example.

Done correctly, scripts are a great way to enhance your monitoring or automation needs. The difficult item to do with scripts is to be able to keep track of what is running and what happens in case of a failure. 

Below, I will show the metrics used in the monitoring scripts along with a sample cron job.

Using cron to run monitoring scripts

Fig 1: Using cron to run monitoring scripts every 5 minutes

Here is a list of the available metrics within the monitoring scripts:

  • Memory Utilization (%)
  • Memory Used (MB)
  • Memory Available (MB)
  • Swap Utilization (%)
  • Swap Used (MB)
  • Disk Space Utilization (%)
  • Disk Space Used (GB)
  • Disk Space Available (GB)

AWS CloudWatch metrics monitoring view for an EC2 instance

Fig 2: AWS CloudWatch metrics monitoring view for an EC2 instance

The simpler way is to use Agents

A simpler way to get disk and memory usage is to deploy agents that will extract this information. This method is scalable, efficient and can be modified to perform almost any type of monitoring. Agents are available for Linux and Windows servers and contain secure methods for communication. Agents are extensible and can be used to add scripts for handling events within your environment. Agents will give you these benefits. Agents allow for application metrics such as Nginx, MySQL, MongoDB and more. Learn more about Opsview Agents.

Get unified insight into your IT operations with Opsview Monitor

jhashem's picture
by John Hashem,
Technical Pre-sales
John joined Opsview in December 2015 and continues his passion for technical pre-sales and account management. He enjoys attending technical conferences and showcasing Opsview Monitor to a wide range of audiences. In John's free time, he likes to travel and to learn new technologies.

More like this

Apr 29, 2016
Blog
By Opsview Team, Administrator

A guide to our latest Webinar on how to monitor Amazon Web Services with Opsview Monitor.

How to monitor AWS
May 16, 2017
Blog
By Eric Bernsen, Marketing Analyst

Monitor AWS performance more efficiently by learning about our newly released Opspacks that oversee a variety of AWS services. 

Choosing between on premises and off premises
Nov 09, 2017
Blog
By John Hashem, Technical Pre-sales

CloudWatch provides all the latest metrics to monitor your AWS environment.