diff --git a/system/generic/monitors-system.tf b/system/generic/monitors-system.tf index ac84c0f..98a4904 100644 --- a/system/generic/monitors-system.tf +++ b/system/generic/monitors-system.tf @@ -32,13 +32,12 @@ resource "datadog_monitor" "datadog_cpu_too_high" { resource "datadog_monitor" "datadog_load_too_high" { count = "${var.cpu_load_enabled ? 1 : 0}" - name = "[${var.environment}] CPU load 5 {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" + name = "[${var.environment}] CPU load 5 ratio {{#is_alert}}{{{comparator}}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}} ({{value}}){{/is_warning}}" message = "${coalesce(var.cpu_load_message, var.message)}" query = < ${var.cpu_load_threshold_critical} EOF