MON-142: added group and updated values
This commit is contained in:
parent
fcacc5198f
commit
d1c9b38608
@ -13,8 +13,8 @@ resource "datadog_monitor" "mysql_connections_15min" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_15m): (
|
avg(last_15m): (
|
||||||
avg:mysql.net.connections{${data.template_file.filter.rendered}} /
|
avg:mysql.net.connections{${data.template_file.filter.rendered}} by {region,dd_host} /
|
||||||
avg:mysql.net.max_connections{${data.template_file.filter.rendered}}
|
avg:mysql.net.max_connections{${data.template_file.filter.rendered}} by {region,dd_host}
|
||||||
) * 100 > ${var.mysql_connection_threshold_critical}
|
) * 100 > ${var.mysql_connection_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -27,15 +27,10 @@ resource "datadog_monitor" "mysql_connections_15min" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
notify_no_data = true
|
notify_no_data = true
|
||||||
evaluation_delay = "${var.evaluation_delay}"
|
renotify_interval = 0
|
||||||
renotify_interval = 60
|
require_full_window = false
|
||||||
notify_audit = false
|
|
||||||
timeout_h = 0
|
timeout_h = 0
|
||||||
include_tags = true
|
include_tags = true
|
||||||
locked = true
|
|
||||||
require_full_window = true
|
|
||||||
new_host_delay = "${var.evaluation_delay}"
|
|
||||||
no_data_timeframe = 20
|
|
||||||
|
|
||||||
tags = ["env:${var.environment}", "resource:mysql"]
|
tags = ["env:${var.environment}", "resource:mysql"]
|
||||||
}
|
}
|
||||||
@ -47,7 +42,7 @@ resource "datadog_monitor" "mysql_thread_5min" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_5m): (
|
avg(last_5m): (
|
||||||
avg:mysql.performance.threads_running{${data.template_file.filter.rendered}}
|
avg:mysql.performance.threads_running{${data.template_file.filter.rendered}} by {region,dd_host}
|
||||||
) > ${var.mysql_thread_threshold_critical}
|
) > ${var.mysql_thread_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -60,15 +55,10 @@ resource "datadog_monitor" "mysql_thread_5min" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
notify_no_data = true
|
notify_no_data = true
|
||||||
evaluation_delay = "${var.evaluation_delay}"
|
renotify_interval = 0
|
||||||
renotify_interval = 60
|
require_full_window = false
|
||||||
notify_audit = false
|
|
||||||
timeout_h = 0
|
timeout_h = 0
|
||||||
include_tags = true
|
include_tags = true
|
||||||
locked = false
|
|
||||||
require_full_window = true
|
|
||||||
new_host_delay = "${var.evaluation_delay}"
|
|
||||||
no_data_timeframe = 20
|
|
||||||
|
|
||||||
tags = ["env:${var.environment}", "resource:mysql"]
|
tags = ["env:${var.environment}", "resource:mysql"]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user