Forked from thomasmichaelwallace/eb-memory-monitor.config
Last active
March 29, 2018 00:47
-
-
Save joshtab/435216dc615876efe9bcc436baf0b1a7 to your computer and use it in GitHub Desktop.
EB CloudWatch memory usage reporting .ebextensions file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
container_commands: | |
00download: | |
command: "wget http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.2.zip" | |
ignoreErrors: true | |
01extract: | |
command: "unzip CloudWatchMonitoringScripts-1.2.2.zip" | |
ignoreErrors: true | |
02rmzip: | |
command: "rm CloudWatchMonitoringScripts-1.2.2.zip" | |
ignoreErrors: true | |
03prereq: | |
command: "yum install -y perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https" | |
ignoreErrors: false | |
04cdinto: | |
command: "mv aws-scripts-mon/ /home/ec2-user" | |
ignoreErrors: true | |
files: | |
"/etc/cron.d/memory_monitor": | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
* * * * * /home/ec2-user/aws-scripts-mon/mon-put-instance-data.pl --mem-util --mem-used --mem-avail |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment