Skip to content

Commit

Permalink
fix invalid fields
Browse files Browse the repository at this point in the history
  • Loading branch information
eebi-sotec committed Oct 29, 2024
1 parent f02fe47 commit 981e18f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions terraform/modules/alert_policies/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ resource "google_monitoring_alert_policy" "k8s_pending_pod_not_starting_alert_po
renotify_interval = "3600s"
}
}
severity = "warning"
project = var.project_id
documentation {
subject = "Pending Pods Alert"
content = "Pod has been on pending for over 5mins."
}
}
Expand All @@ -57,10 +55,8 @@ resource "google_monitoring_alert_policy" "k8s_failed_pod_not_starting_alert_pol
renotify_interval = "3600s"
}
}
severity = "warning"
project = var.project_id
documentation {
subject = "Failed Pod Alert"
content = "Pod has been stuck in 'failed' for over 5mins."
}
}
Expand Down Expand Up @@ -90,10 +86,8 @@ resource "google_monitoring_alert_policy" "k8s_restart_alert_policy" {
renotify_interval = "3600s"
}
}
severity = "warning"
project = var.project_id
documentation {
subject = "Pod continously restarting."
content = "The pod has been restarted more than 3 times in the last 5 mins."
}
}
Expand Down Expand Up @@ -137,10 +131,8 @@ resource "google_monitoring_alert_policy" "k8s_critical_resource_alert_policy" {
renotify_interval = "3600s"
}
}
severity = "warning"
project = var.project_id
documentation {
subject = "Pod using critical amount of resources"
content = "Pod has been using more than 95% CPU and 90% Memory for the last 5 mins"
}
}
Expand All @@ -165,10 +157,8 @@ resource "google_monitoring_alert_policy" "k8s_readiness_alert_policy" {
renotify_interval = "3600s"
}
}
severity = "warning"
project = var.project_id
documentation {
subject = "Pod not ready alert"
content = "The pod has not been ready for over 5 mins."
}
}

0 comments on commit 981e18f

Please sign in to comment.