diff --git a/system/generic/README.md b/system/generic/README.md index 988bb78..b2f238a 100644 --- a/system/generic/README.md +++ b/system/generic/README.md @@ -91,7 +91,7 @@ Creates DataDog monitors with the following checks: | unreachable_enabled | Flag to enable Host unreachable monitor | string | `true` | no | | unreachable_extra_tags | Extra tags for Host unreachable monitor | list | `` | no | | unreachable_message | Custom message for Host unreachable monitor | string | `` | no | -| unreachable_no_data_timeframe | Timeframe for Host unreachable monitor to alert on no data | string | `2` | no | +| unreachable_no_data_timeframe | Timeframe for Host unreachable monitor to alert on no data | string | `20` | no | | unreachable_silenced | Groups to mute for Host unreachable monitor | map | `` | no | ## Outputs diff --git a/system/generic/inputs.tf b/system/generic/inputs.tf index 3971434..b62c0b5 100644 --- a/system/generic/inputs.tf +++ b/system/generic/inputs.tf @@ -58,7 +58,7 @@ variable "unreachable_message" { variable "unreachable_no_data_timeframe" { description = "Timeframe for Host unreachable monitor to alert on no data" type = "string" - default = 2 + default = 20 } variable "cpu_high_silenced" { diff --git a/system/generic/monitors-system.tf b/system/generic/monitors-system.tf index d5991c5..481a68d 100644 --- a/system/generic/monitors-system.tf +++ b/system/generic/monitors-system.tf @@ -14,13 +14,13 @@ resource "datadog_monitor" "datadog_host_unreachable" { } notify_no_data = true + no_data_timeframe = "${var.unreachable_no_data_timeframe}" new_host_delay = "${var.new_host_delay}" notify_audit = false timeout_h = 0 include_tags = true locked = false require_full_window = true - no_data_timeframe = "${var.unreachable_no_data_timeframe}" silenced = "${var.unreachable_silenced}" @@ -45,7 +45,7 @@ resource "datadog_monitor" "datadog_cpu_too_high" { critical = "${var.cpu_high_threshold_critical}" } - notify_no_data = true + notify_no_data = false evaluation_delay = "${var.evaluation_delay}" new_host_delay = "${var.new_host_delay}" notify_audit = false @@ -78,7 +78,7 @@ resource "datadog_monitor" "datadog_load_too_high" { critical = "${var.cpu_load_threshold_critical}" } - notify_no_data = true + notify_no_data = false evaluation_delay = "${var.evaluation_delay}" new_host_delay = "${var.new_host_delay}" notify_audit = false @@ -111,7 +111,7 @@ resource "datadog_monitor" "datadog_free_disk_space_too_low" { critical = "${var.free_disk_space_threshold_critical}" } - notify_no_data = true + notify_no_data = false evaluation_delay = "${var.evaluation_delay}" new_host_delay = "${var.new_host_delay}" notify_audit = false @@ -184,7 +184,7 @@ resource "datadog_monitor" "datadog_free_disk_space_inodes_too_low" { critical = "${var.free_disk_inodes_threshold_critical}" } - notify_no_data = true + notify_no_data = false evaluation_delay = "${var.evaluation_delay}" new_host_delay = "${var.new_host_delay}" notify_audit = false @@ -217,7 +217,7 @@ resource "datadog_monitor" "datadog_free_memory" { critical = "${var.free_memory_threshold_critical}" } - notify_no_data = true + notify_no_data = false evaluation_delay = "${var.evaluation_delay}" new_host_delay = "${var.new_host_delay}" renotify_interval = 0