Skip to content

Commit

Permalink
fix(tf): wip alerting policy
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Oct 30, 2023
1 parent 2580791 commit c44e271
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tf/modules/monitoring/sql-backup-failure-alert.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ resource "google_monitoring_alert_policy" "alert_policy_sql_logical_backup_failu
condition_absent {
filter = "metric.type=\"logging.googleapis.com/user/${google_logging_metric.sql_logical_backup_success.name}\" AND resource.type=\"k8s_container\""
duration = "86400s"

aggregations {
cross_series_reducer = "REDUCE_COUNT"
per_series_aligner = "ALIGN_COUNT"
group_by_fields = "container_name"
}
trigger {
count = 1
}
Expand Down

0 comments on commit c44e271

Please sign in to comment.