https://github.com/aws-quickstart/cloudwatch-alarm-macro
https://github.com/aws-quickstart/cloudwatch-alarm-macro
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/aws-quickstart/cloudwatch-alarm-macro
- Owner: aws-quickstart
- License: apache-2.0
- Created: 2019-07-19T18:21:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-25T18:07:46.000Z (over 4 years ago)
- Last Synced: 2023-06-14T22:31:34.113Z (about 3 years ago)
- Language: Python
- Size: 21.5 KB
- Stars: 12
- Watchers: 7
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudwatch-alarm-macro
Now Supports CloudFormation Conditions
CloudFormation Macro that will append a set of CloudWatch alarms for supported resources.
## Included alarms
Amazon Elastic Compute Cloud (Amazon EC2), load balancers, Lambda, and Network address translation (NAT) gateways
|Service | Alarm | Description |
|---|---|---|
|Amazon EC2 | CPUUtilization | CPU utilization percentage |
|Amazon EC2 | StatusCheckFailed_Instance | Health check for the instance |
|Application Load Balancer | HTTPCode_ELB_5XX_Count | The number of HTTP 5XX server error codes that originate from the load balancer|
|Application Load Balancer | RejectedConnectionCount | Rejected connections due to the load balancer reaching its maximum number of connections |
|Network Load Balancer | UnHealthyHostCount | The number of targets that are considered unhealthy |
|Network Load Balancer | HealthyHostCount | The number of targets that are considered healthy |
|Lambda | Errors | The number of invocations that failed due to errors in the function (response code 4XX) |
|Lambda | Invocations | The number of times a function is invoked in response to an event or invocation API call |
|NAT Gateway | ErrorPortAllocation | The number of times the NAT gateway could not allocate a source port |
|NAT Gateway | ActiveConnectionCount | The total number of concurrent active TCP connections through the NAT gateway |
## usage
To use the macro, add the following line to the top of your templates:
Transform: AlarmMacro
A sample template has been provided in /samples
## macro order for serverless templates
If you are deploying a serverless template please ensure you list this macro after the serverless transform
Transform: ["AWS::Serverless-2016-10-31", "AlarmMacro"]