File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,14 @@ module "datadog_monitoring" {
3030resource "datadog_monitor" "oom" {
3131 count = var. monitoring_enabled ? 1 : 0
3232
33- name = " OOM kill detected on ${ var . cluster_name } "
34- type = " metric alert"
35- query = " sum(last_1h):sum:oom_kill.oom_process.count{cluster_name:${ var . cluster_name } } by {kube_namespace,kube_container_name}.as_count() >= 1"
36- timeout_h = 1
37- priority = 3
33+ name = " OOM kill detected on ${ var . cluster_name } "
34+ type = " metric alert"
35+ query = " sum(last_4h):sum:oom_kill.oom_process.count{cluster_name:${ var . cluster_name } } by {kube_namespace,kube_container_name}.as_count() >= 1"
36+
37+ on_missing_data = " default"
38+ group_retention_duration = " 24h"
39+
40+ priority = 3
3841
3942 monitor_thresholds {
4043 critical = 1
You can’t perform that action at this time.
0 commit comments