Memory metric is often needed to be monitor by many workloads however it is an OS-level metric and thus it is not readily available in EC2 Monitoring Dashboard. To view memory metric, we need to install Cloudwatch agent. Cloudwatch agent is useful to send both custom metrics and logs to Cloudwatch. For detailed explanation on how to install and configure Cloudwatch agent, please check this documentation.
This repository contains sample EC2 and Autoscaling Group deployment with memory metric installed. The sample is available in both AWS CDK and AWS Cloudformation version. Both AWS CDK and Cloudformation offers versatile Infrastructure as a Code tool. AWS CDK enables you to use your own familiar programming language to develop the Infrastructure. There is a prerequisite to get started with AWS CDK. If you want to skip the prerequisites and immediately deploy the sample in your AWS account via Cloudformation console, you can use the Cloudformation template.
- Installing AWS CLI
- Installing Typescript :
npm install -g typescript
- Installing AWS CDK
- Run CDK Bootstrap
- Deploy the Cloudformation YAML template in your Cloudformation console. Creating Cloudformation Stack in AWS Console
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.