Skip to content

Commit

Permalink
chore: suppress AWS Lambda Powertools metrics warning (#905)
Browse files Browse the repository at this point in the history
Update the API CloudWatch warning metric filter to ignore messages
that there are no metrics to publish.
  • Loading branch information
patheard authored Mar 15, 2024
1 parent 7a9439f commit 6be39d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terragrunt/aws/alarms/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ locals {
]
api_warnings_skip = [
"database server doesn't have the latest patch",
"No application metrics to publish",
]
api_error_metric_pattern = "[(w1=\"*${join("*\" || w1=\"*", local.api_errors)}*\") && w1!=\"*${join("*\" && w1!=\"*", local.api_errors_skip)}*\"]"
api_warning_metric_pattern = "[(w1=\"*${join("*\" || w1=\"*", local.api_warnings)}*\") && w1!=\"*${join("*\" && w1!=\"*", local.api_warnings_skip)}*\"]"
Expand Down

0 comments on commit 6be39d9

Please sign in to comment.