diff --git a/cloud/azure/mysql/monitors-mysql.tf b/cloud/azure/mysql/monitors-mysql.tf index 4b0214f..b8554e2 100644 --- a/cloud/azure/mysql/monitors-mysql.tf +++ b/cloud/azure/mysql/monitors-mysql.tf @@ -125,39 +125,6 @@ resource "datadog_monitor" "mysql_io_consumption" { tags = ["env:${var.environment}", "type:cloud", "provider:azure", "resource:mysql", "team:claranet", "created-by:terraform", "${var.io_consumption_extra_tags}"] } -resource "datadog_monitor" "mysql_compute_consumption" { - count = "${var.compute_consumption_enabled ? 1 : 0}" - name = "[${var.environment}] Mysql Server compute consumption {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" - message = "${coalesce(var.compute_consumption_message, var.message)}" - - query = < ${var.compute_consumption_threshold_critical} - EOF - - type = "metric alert" - - thresholds { - critical = "${var.compute_consumption_threshold_critical}" - warning = "${var.compute_consumption_threshold_warning}" - } - - silenced = "${var.compute_consumption_silenced}" - - notify_no_data = false - evaluation_delay = "${var.evaluation_delay}" - renotify_interval = 0 - notify_audit = false - timeout_h = 0 - include_tags = true - locked = false - require_full_window = false - new_host_delay = "${var.new_host_delay}" - - tags = ["env:${var.environment}", "type:cloud", "provider:azure", "resource:mysql", "team:claranet", "created-by:terraform", "${var.compute_consumption_extra_tags}"] -} - resource "datadog_monitor" "mysql_memory_usage" { count = "${var.memory_usage_enabled ? 1 : 0}" name = "[${var.environment}] Mysql Server memory usage {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" diff --git a/cloud/azure/postgresql/monitors-postegresql.tf b/cloud/azure/postgresql/monitors-postegresql.tf index 9528fdd..b4251a9 100644 --- a/cloud/azure/postgresql/monitors-postegresql.tf +++ b/cloud/azure/postgresql/monitors-postegresql.tf @@ -157,36 +157,3 @@ resource "datadog_monitor" "postgresql_memory_usage" { tags = ["env:${var.environment}", "type:cloud", "provider:azure", "resource:postgresql", "team:claranet", "created-by:terraform", "${var.memory_usage_extra_tags}"] } - -resource "datadog_monitor" "postgresql_compute_consumption" { - count = "${var.compute_consumption_enabled ? 1 : 0}" - name = "[${var.environment}] Postgresql Server compute consumption {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" - message = "${coalesce(var.compute_consumption_message, var.message)}" - - query = < ${var.compute_consumption_threshold_critical} - EOF - - type = "metric alert" - - thresholds { - critical = "${var.compute_consumption_threshold_critical}" - warning = "${var.compute_consumption_threshold_warning}" - } - - silenced = "${var.compute_consumption_silenced}" - - notify_no_data = false - evaluation_delay = "${var.evaluation_delay}" - renotify_interval = 0 - notify_audit = false - timeout_h = 0 - include_tags = true - locked = false - require_full_window = false - new_host_delay = "${var.new_host_delay}" - - tags = ["env:${var.environment}", "type:cloud", "provider:azure", "resource:postgresql", "team:claranet", "created-by:terraform", "${var.compute_consumption_extra_tags}"] -}