Skip to content

Instantly share code, notes, and snippets.

@kevingo
Last active July 3, 2017 11:44
Show Gist options
  • Select an option

  • Save kevingo/24f280b5a0189e36ffba67a4db2cd4fd to your computer and use it in GitHub Desktop.

Select an option

Save kevingo/24f280b5a0189e36ffba67a4db2cd4fd to your computer and use it in GitHub Desktop.
CloudWatch for Memory usage
$ sudo apt-get update
$ sudo apt-get install unzip
$ sudo apt-get install libwww-perl libdatetime-perl
curl http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.1.zip -O
unzip CloudWatchMonitoringScripts-1.2.1.zip
rm CloudWatchMonitoringScripts-1.2.1.zip
cd aws-scripts-mon
*/5 * * * * ~/aws-scripts-mon/mon-put-instance-data.pl --mem-util --disk-space-util --disk-path=/ --from-cron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment