AWS News Blog
New HAQM CloudWatch Monitoring Scripts
|
Update (January 6, 2016) – The scripts described in this blog post have been deprecated and are no longer available.
For updated information on how to perform the same tasks in a more modern fashion, please take a look at Sending Performance Counters to CloudWatch and Logs to CloudWatch Logs, Configuring a Windows Instance Using the EC2Config Service, and Monitoring Memory and Disk Statistics for HAQM EC2 Linux Instances.
The HAQM CloudWatch team has just released new sample scripts for monitoring memory and disk space usage on your HAQM EC2 instances running Linux.
You can run these scripts on your instances and configure them to report memory and disk space usage metrics to HAQM CloudWatch. Once the metrics are submitted to CloudWatch, you can view graphs, calculate statistics and set alarms on them in the CloudWatch console or via the CloudWatch API.
Available metrics include:
- Memory Utilization (%)
- Memory Used (MB)
- Memory Available (MB)
- Swap Utilization (%)
- Swap Used (MB)
- Disk Space Utilization (%)
- Disk Space Used (GB)
- Disk Space Available (GB)
The instance memory and disk space usage metrics are reported as HAQM CloudWatch Custom Metrics. Standard HAQM CloudWatch free tier quantities and pricing apply. This is an unsupported sample but we appreciate all feedback, comments and questions you post to the AWS forums.
To learn more about how to use the scripts, including installation, setup and configuration, please visit “HAQM CloudWatch Monitoring Scripts for Linux” in the HAQM CloudWatch Developer Guide.
— Henry Hahn, Product Manager, HAQM CloudWatch.