MON-142: changed host tag
This commit is contained in:
parent
a6c8535e99
commit
f427e6e53f
@ -13,8 +13,8 @@ resource "datadog_monitor" "mysql_connection_too_high" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_15m): (
|
avg(last_15m): (
|
||||||
avg:mysql.net.connections{${data.template_file.filter.rendered}} by {region,dd_host} /
|
avg:mysql.net.connections{${data.template_file.filter.rendered}} by {region,db_host} /
|
||||||
avg:mysql.net.max_connections{${data.template_file.filter.rendered}} by {region,dd_host}
|
avg:mysql.net.max_connections{${data.template_file.filter.rendered}} by {region,db_host}
|
||||||
) * 100 > ${var.mysql_connection_threshold_critical}
|
) * 100 > ${var.mysql_connection_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ resource "datadog_monitor" "mysql_thread_too_high" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
avg(last_5m): (
|
avg(last_5m): (
|
||||||
avg:mysql.performance.threads_running{${data.template_file.filter.rendered}} by {region,dd_host}
|
avg:mysql.performance.threads_running{${data.template_file.filter.rendered}} by {region,db_host}
|
||||||
) > ${var.mysql_thread_threshold_critical}
|
) > ${var.mysql_thread_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user