Creating an AWS alarm based on more than one AWS metric. #6955
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/cloudwatch
Issues and PRs that pertain to the cloudwatch service.
This issue was originally opened by @jeevesdavid as hashicorp/terraform#19728. It was migrated here as a result of the provider split. The original body of the issue is below.
Current Terraform Version
Terraform v0.11.3
provider.aws v1.52.0
Use-cases
Creating an AWS alarm based on lambda availability. This could for instance be calculated as.
100 - 100 * errors / invocations
Where "errors" and "invocations" are pre defined AWS metrics.
Attempted Solutions
Created the alarm manually using AWS console
Proposal
The terraform resource "aws_cloudwatch_metric_alarm" should support a new argument "metric_expression".
An example value would be "100 - 100 * errors / invocations". For starters we could assume that all metrics in the expression share the same namespace.
References
The text was updated successfully, but these errors were encountered: