Skip to content

Commit

Permalink
fix alert policy
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Oct 11, 2023
1 parent a54b31c commit 19f33bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tf/modules/monitoring/sql-backup-failure-alert.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ resource "google_monitoring_alert_policy" "alert_policy_sql_logical_backup_pv_cr
filter = <<-EOT
metric.type="kubernetes.io/pod/volume/utilization"
resource.type="k8s_pod"
resource.label."cluster_name"="${var.cluster_name}"
resource.label."pod_name".starts_with("sql-logic-backup-")
resource.label.cluster_name="${var.cluster_name}"
resource.label.pod_name=starts_with("sql-logic-backup-")
EOT

duration = "86400s"
duration = "60s"
comparison = "COMPARISON_GT"
threshold_value = local.sql_pv_critical_utilization_threshold
threshold_value = local.sql_backup_disk_critical_usage_threshold

aggregations {
alignment_period = "120s"
Expand Down

0 comments on commit 19f33bb

Please sign in to comment.