A guide to our latest Webinar on how to monitor Amazon Web Services with Opsview Monitor.
You are here
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.
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)
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.
More like this
Opsview has introduced the Opsview Puppet Module, which automatically registers compute instances for monitoring within Opsview Monitor.
Containers are increasingly becoming a core technology in modern IT infrastructure.