MON-281 add variable for no_data_timeframe
This commit is contained in:
parent
cf48c3aa98
commit
8b9eaaae2d
@ -84,6 +84,7 @@ Creates DataDog monitors with the following checks:
|
||||
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |
|
||||
| unreachable_extra_tags | Extra tags for Host unreachable monitor | list | `<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_silenced | Groups to mute for Host unreachable monitor | map | `<map>` | no |
|
||||
|
||||
## Outputs
|
||||
|
||||
@ -49,6 +49,12 @@ variable "unreachable_message" {
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "unreachable_no_data_timeframe" {
|
||||
description = "Timeframe for Host unreachable monitor to alert on no data"
|
||||
type = "string"
|
||||
default = 2
|
||||
}
|
||||
|
||||
variable "cpu_high_silenced" {
|
||||
description = "Groups to mute for CPU high monitor"
|
||||
type = "map"
|
||||
|
||||
@ -19,6 +19,7 @@ resource "datadog_monitor" "datadog_host_unreachable" {
|
||||
include_tags = true
|
||||
locked = false
|
||||
require_full_window = true
|
||||
no_data_timeframe = "${var.unreachable_no_data_timeframe}"
|
||||
|
||||
silenced = "${var.unreachable_silenced}"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user