From 7af01c5bb102713311a1b0b8a5207638eacec4fa Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Wed, 26 Sep 2018 11:39:39 +0200 Subject: [PATCH] MON-306 use normalized metric for load and replace percentage by ratio --- system/generic/monitors-system.tf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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