-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(aws_instance): treat missing data on cloudwatchmetric #184
feat(aws_instance): treat missing data on cloudwatchmetric #184
Conversation
Hi @johncblandii, @joe-niland |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@haidargit looks good. I think it would help to add input validation for this variable.
7ec3fe6
to
45ec3c3
Compare
Co-authored-by: Joe Niland <[email protected]>
Validation added, @joe-niland, Thanks for the correction! |
…idargit/terraform-aws-ec2-instance into feature/cloudwatch-treat-missing-data
/terratest |
variable added on Thanks |
/terratest |
what
The PR enables the treat_missing_data argument for the cloudwatch metric alarm resource on this ec2 module.
terraform-aws-ec2-instance/cloudwatch-alarm.tf
Line 11 in bf54345
why
Users may have specific run schedules, triggering alerts in CloudWatch, e.g., for missing data during offline periods (instance stopped state, hibernate, restart, etc.).
This
treat_missing_data
variable will enable the CloudWatch alarms to set custom responses, which are "missing
", "ignore
", "breaching
" and "notBreaching
", for the data gaps that occur and keep the EC2 alarms condition in a desired state.references
Kindly review this PR for any possible improvements. Thank you