Advanced Monitoring with CloudWatch on aMiSTACX

Enable CloudWatch Agent for Area 51

March 16th, 2019 [aMiSTACX] Area 51 now supports Advanced Monitoring with 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.

As part of our March refresh all G3/G4 stacks will have the CloudWatch Agent Pre-Configured and available for Area 51. High Availability stacks such as the S3 Titanium series will have access to the Advanced Monitoring feature set. Pro subscribers will also have access.

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 be an S3 Titanium subscriber or a have a A51 Pro membership and need assistance, please contact support.

 

1 Comment

Comments are closed.