MON-142 try to make the status monitor more tolerant
This commit is contained in:
parent
391240f597
commit
c2434bb454
@ -5,15 +5,16 @@ resource "datadog_monitor" "mysql_availability" {
|
|||||||
type = "service check"
|
type = "service check"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
"mysql.can_connect".over${module.filter-tags.service_check}.by("host","port","server").last(1).pct_by_status()
|
"mysql.can_connect".over${module.filter-tags.service_check}.by("port","server").last(6).count_by_status()
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
thresholds = {
|
thresholds = {
|
||||||
warning = 0
|
warning = 5
|
||||||
critical = "${var.mysql_availability_threshold_critical}"
|
critical = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
notify_no_data = true
|
notify_no_data = true
|
||||||
|
no_data_timeframe = 10
|
||||||
new_host_delay = "${var.new_host_delay}"
|
new_host_delay = "${var.new_host_delay}"
|
||||||
renotify_interval = 0
|
renotify_interval = 0
|
||||||
notify_audit = false
|
notify_audit = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user