No image

Enable CloudWatch Agent for Area 51

Area 51 supports Advanced Monitoring with AWS CloudWatch. This new feature will allow history on some important local EC2 metrics such as disk space available, memory usage, CPU utilization, CPU credits and more.

Should your stack not have the CloudWatch Agent, please follow these simple steps to install on a G3/G4 stack:

Get and Install CWA:

Ubuntu:

wget https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb
sudo dpkg -i -E ./amazon-cloudwatch-agent.deb

Windows:

https://s3.amazonaws.com/amazoncloudwatch-agent/windows/amd64/latest/amazon-cloudwatch-agent.msi
msiexec /i amazon-cloudwatch-agent.msi

Install CloudWatch Agent Dependency on Ubuntu:

sudo apt-get install collectd

SFTP config.json File to Server:

Copy this config.json file to this directory on the Ubuntu EC2: /opt/aws/amazon-cloudwatch-agent/bin/

or just copy and paste with sudo nano /opt/aws/amazon-cloudwatch-agent/bin/config.json

Start Agent

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json -s

Useful Commands:

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a status #Check Status of Agent
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a stop  #Manual stop prevents auto-start on reboot

Should you need assistance, please contact support.