Skip to content

Commit 608025b

Browse files
authored
Merge pull request #30 from worldcoin/limit-nr-of-renotifications
Limit nr of renotifications on slack channels
2 parents 22aaa3c + 6dee47c commit 608025b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

datadog.tf

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ module "datadog_monitoring" {
3030
resource "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

0 commit comments

Comments
 (0)