Skip to content

Commit 981e18f

Browse files
committed
fix invalid fields
1 parent f02fe47 commit 981e18f

File tree

1 file changed

+0
-10
lines changed
  • terraform/modules/alert_policies

1 file changed

+0
-10
lines changed

terraform/modules/alert_policies/main.tf

-10
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ resource "google_monitoring_alert_policy" "k8s_pending_pod_not_starting_alert_po
2828
renotify_interval = "3600s"
2929
}
3030
}
31-
severity = "warning"
3231
project = var.project_id
3332
documentation {
34-
subject = "Pending Pods Alert"
3533
content = "Pod has been on pending for over 5mins."
3634
}
3735
}
@@ -57,10 +55,8 @@ resource "google_monitoring_alert_policy" "k8s_failed_pod_not_starting_alert_pol
5755
renotify_interval = "3600s"
5856
}
5957
}
60-
severity = "warning"
6158
project = var.project_id
6259
documentation {
63-
subject = "Failed Pod Alert"
6460
content = "Pod has been stuck in 'failed' for over 5mins."
6561
}
6662
}
@@ -90,10 +86,8 @@ resource "google_monitoring_alert_policy" "k8s_restart_alert_policy" {
9086
renotify_interval = "3600s"
9187
}
9288
}
93-
severity = "warning"
9489
project = var.project_id
9590
documentation {
96-
subject = "Pod continously restarting."
9791
content = "The pod has been restarted more than 3 times in the last 5 mins."
9892
}
9993
}
@@ -137,10 +131,8 @@ resource "google_monitoring_alert_policy" "k8s_critical_resource_alert_policy" {
137131
renotify_interval = "3600s"
138132
}
139133
}
140-
severity = "warning"
141134
project = var.project_id
142135
documentation {
143-
subject = "Pod using critical amount of resources"
144136
content = "Pod has been using more than 95% CPU and 90% Memory for the last 5 mins"
145137
}
146138
}
@@ -165,10 +157,8 @@ resource "google_monitoring_alert_policy" "k8s_readiness_alert_policy" {
165157
renotify_interval = "3600s"
166158
}
167159
}
168-
severity = "warning"
169160
project = var.project_id
170161
documentation {
171-
subject = "Pod not ready alert"
172162
content = "The pod has not been ready for over 5 mins."
173163
}
174164
}

0 commit comments

Comments
 (0)