MON-286 remove notify no data on metrics monitors

This commit is contained in:
Quentin Manfroi 2018-09-11 16:42:59 +02:00
parent 391240f597
commit 61843c980f
3 changed files with 8 additions and 8 deletions

View File

@ -91,7 +91,7 @@ Creates DataDog monitors with the following checks:
| unreachable_enabled | Flag to enable Host unreachable monitor | string | `true` | no | | unreachable_enabled | Flag to enable Host unreachable monitor | string | `true` | no |
| unreachable_extra_tags | Extra tags for Host unreachable monitor | list | `<list>` | no | | unreachable_extra_tags | Extra tags for Host unreachable monitor | list | `<list>` | no |
| unreachable_message | Custom message for Host unreachable monitor | string | `` | 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 | `<map>` | no | | unreachable_silenced | Groups to mute for Host unreachable monitor | map | `<map>` | no |
## Outputs ## Outputs

View File

@ -58,7 +58,7 @@ variable "unreachable_message" {
variable "unreachable_no_data_timeframe" { variable "unreachable_no_data_timeframe" {
description = "Timeframe for Host unreachable monitor to alert on no data" description = "Timeframe for Host unreachable monitor to alert on no data"
type = "string" type = "string"
default = 2 default = 20
} }
variable "cpu_high_silenced" { variable "cpu_high_silenced" {

View File

@ -14,13 +14,13 @@ resource "datadog_monitor" "datadog_host_unreachable" {
} }
notify_no_data = true notify_no_data = true
no_data_timeframe = "${var.unreachable_no_data_timeframe}"
new_host_delay = "${var.new_host_delay}" new_host_delay = "${var.new_host_delay}"
notify_audit = false notify_audit = false
timeout_h = 0 timeout_h = 0
include_tags = true include_tags = true
locked = false locked = false
require_full_window = true require_full_window = true
no_data_timeframe = "${var.unreachable_no_data_timeframe}"
silenced = "${var.unreachable_silenced}" silenced = "${var.unreachable_silenced}"
@ -45,7 +45,7 @@ resource "datadog_monitor" "datadog_cpu_too_high" {
critical = "${var.cpu_high_threshold_critical}" critical = "${var.cpu_high_threshold_critical}"
} }
notify_no_data = true notify_no_data = false
evaluation_delay = "${var.evaluation_delay}" evaluation_delay = "${var.evaluation_delay}"
new_host_delay = "${var.new_host_delay}" new_host_delay = "${var.new_host_delay}"
notify_audit = false notify_audit = false
@ -78,7 +78,7 @@ resource "datadog_monitor" "datadog_load_too_high" {
critical = "${var.cpu_load_threshold_critical}" critical = "${var.cpu_load_threshold_critical}"
} }
notify_no_data = true notify_no_data = false
evaluation_delay = "${var.evaluation_delay}" evaluation_delay = "${var.evaluation_delay}"
new_host_delay = "${var.new_host_delay}" new_host_delay = "${var.new_host_delay}"
notify_audit = false notify_audit = false
@ -111,7 +111,7 @@ resource "datadog_monitor" "datadog_free_disk_space_too_low" {
critical = "${var.free_disk_space_threshold_critical}" critical = "${var.free_disk_space_threshold_critical}"
} }
notify_no_data = true notify_no_data = false
evaluation_delay = "${var.evaluation_delay}" evaluation_delay = "${var.evaluation_delay}"
new_host_delay = "${var.new_host_delay}" new_host_delay = "${var.new_host_delay}"
notify_audit = false notify_audit = false
@ -184,7 +184,7 @@ resource "datadog_monitor" "datadog_free_disk_space_inodes_too_low" {
critical = "${var.free_disk_inodes_threshold_critical}" critical = "${var.free_disk_inodes_threshold_critical}"
} }
notify_no_data = true notify_no_data = false
evaluation_delay = "${var.evaluation_delay}" evaluation_delay = "${var.evaluation_delay}"
new_host_delay = "${var.new_host_delay}" new_host_delay = "${var.new_host_delay}"
notify_audit = false notify_audit = false
@ -217,7 +217,7 @@ resource "datadog_monitor" "datadog_free_memory" {
critical = "${var.free_memory_threshold_critical}" critical = "${var.free_memory_threshold_critical}"
} }
notify_no_data = true notify_no_data = false
evaluation_delay = "${var.evaluation_delay}" evaluation_delay = "${var.evaluation_delay}"
new_host_delay = "${var.new_host_delay}" new_host_delay = "${var.new_host_delay}"
renotify_interval = 0 renotify_interval = 0