MON-248 split delay

This commit is contained in:
Quentin Manfroi 2018-08-30 18:05:31 +02:00
parent 0766bce61e
commit 048e3a8338
2 changed files with 9 additions and 4 deletions

View File

@ -10,9 +10,14 @@ variable "environment" {
}
# Global DataDog
variable "delay" {
variable "evaluation_delay" {
description = "Delay in seconds for the metric evaluation"
default = 900
default = 15
}
variable "new_host_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}
variable "message" {

View File

@ -27,14 +27,14 @@ resource "datadog_monitor" "Nginx_ingress_too_many_5xx" {
}
notify_no_data = false
evaluation_delay = "${var.delay}"
evaluation_delay = "${var.evaluation_delay}"
new_host_delay = "${var.new_host_delay}"
renotify_interval = 0
notify_audit = false
timeout_h = 0
include_tags = true
locked = false
require_full_window = false
new_host_delay = "${var.delay}"
silenced = "${var.ingress_5xx_silenced}"