MON-142: typo in mysql threads and corrected mysql connection query
This commit is contained in:
parent
f427e6e53f
commit
d618775070
@ -14,7 +14,7 @@ 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,db_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,db_host}
|
avg:mysql.net.max_connections_available{${data.template_file.filter.rendered}} by {region,db_host}
|
||||||
) * 100 > ${var.mysql_connection_threshold_critical}
|
) * 100 > ${var.mysql_connection_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ resource "datadog_monitor" "mysql_connection_too_high" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "datadog_monitor" "mysql_thread_too_high" {
|
resource "datadog_monitor" "mysql_thread_too_high" {
|
||||||
name = "[${var.environment}] Mysql threads {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
name = "[${var.environment}] Mysql threads {{#is_alert}}{{{comparator}}} {{threshold}}s ({{value}}s){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}s ({{value}}s){{/is_warning}}"
|
||||||
message = "${coalesce(var.mysql_thread_message, var.message)}"
|
message = "${coalesce(var.mysql_thread_message, var.message)}"
|
||||||
type = "metric alert"
|
type = "metric alert"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user