From d6187750706c1fc8f864e6dd2271e1978a5f727f Mon Sep 17 00:00:00 2001 From: Boris Rousseau Date: Thu, 19 Apr 2018 11:38:30 +0200 Subject: [PATCH] MON-142: typo in mysql threads and corrected mysql connection query --- databases/mysql/mon-mysql.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/databases/mysql/mon-mysql.tf b/databases/mysql/mon-mysql.tf index 8a1f74d..1458aac 100644 --- a/databases/mysql/mon-mysql.tf +++ b/databases/mysql/mon-mysql.tf @@ -14,7 +14,7 @@ resource "datadog_monitor" "mysql_connection_too_high" { query = < ${var.mysql_connection_threshold_critical} EOF @@ -38,7 +38,7 @@ resource "datadog_monitor" "mysql_connection_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)}" type = "metric alert"