Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Monitor Volume Size on Amazon EBS volume

I was wondering if it is possible to automatically monitor the usage percentage on a EBS volume in aws (the volume I wish to monitor is attached to a instance). Perhaps this can be done with alarms in cloudwatch? For example, I need to be alerted if the volume usage percentage reaches 95%. Any ideas?

like image 785
PetersCodeProblems Avatar asked Dec 26 '11 20:12

PetersCodeProblems


1 Answers

Amazon won't do this for you - from their point of view an EBS volume is just a bunch of blocks

In the past I've done this by writing a script (run via a cronjob) that checked the amount of free space on the volume and posted it to cloudwatch (which was setup to trigger an alarm past a certain threshold).

Amazon also provide such a script

like image 64
Frederick Cheung Avatar answered Nov 19 '22 05:11

Frederick Cheung