Skip to content

Commit

Permalink
fix: ignore tranlsation file copy errors (#1529)
Browse files Browse the repository at this point in the history
WordPress is throwing errors for French tranlsation files that
do not exist.  These can be ignored as they are expected since
we're not using those plugins and themes.
  • Loading branch information
patheard authored Nov 16, 2023
1 parent 2a3c9bc commit d7c6d44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infrastructure/terragrunt/aws/alarms/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ locals {
"HTTP/1.1\\\" 403",
"HTTP/1.1\\\" 404",
"Undefined constant",
"fr_FR.po",
]
wordpress_database_errors = [
"database error",
Expand All @@ -30,6 +31,8 @@ locals {
]
wordpress_warnings_skip = [
"Undefined array key*c3-cloudfront-clear-cache",
"fr_FR.po",
"chmod()",
]
wordpress_error_metric_pattern = "[(w1=\"*${join("*\" || w1=\"*", local.wordpress_errors)}*\") && w1!=\"*${join("*\" && w1!=\"*", local.wordpress_errors_skip)}*\"]"
wordpress_database_error_metric_pattern = "[(w1=\"*${join("*\" || w1=\"*", local.wordpress_database_errors)}*\")]"
Expand Down

0 comments on commit d7c6d44

Please sign in to comment.