I'm running a wordpress off of AWS, and I can't figure out how to monitor if the volume is running out of capacity. There are many options for monitoring other things, but I just want to know when we run low on space.
Enable Available CloudWatch Metrics More information about the installation on Amazon Linux and Red Hat Enterprise Linux. Inside the package, we'll be interested onto mon-put-instance-data.pl script. It will collect memory, swap and disk space utilisation data on the current system and then send it to CloudWatch.
Monitoring EBS storage with Amazon CloudWatch is a useful mechanism to ensure your application's performance.
By default, CloudWatch does not provide memory and disk usage metrics for your EC2 Instances. This is because EC2 instances are VMs and CloudWatch only has metrics from the hypervisor, which cannot see the memory and disk usage metrics inside a running VM.
There are no built in metrics for disk space - Because Amazon is looking at this 'from the outside', they don't know what you've done with an EBS volume: it could be part of a raid set, formatted in some exotic format etc.
Amazon has a system called CloudWatch that can be used to monitor AWS systems and resources. Luckily, CloudWatch supports custom metrics: you can use the CloudWatch APIs to add any data you want (and then create alerts off them).
Amazon provides some sample scripts that will publish (among other things) disk space utilisation to Cloudwatch. Do be aware that there is a small charge associated with using custom metrics - $0.50 per metric per month.
I agree with Frederick Cheung's answer; however, I found this utility for Windows instances: http://www.eleven41.com/labs/cloudwatch-monitor-for-windows/. It runs as a service and will send the disk space and memory usage metrics to CloudWatch for you. From there, you'd just need to set up the alarm in CloudWatch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With