From 34758a8cac5c38299eacd1ef00ed4dba22cc46a0 Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Tue, 23 Apr 2019 13:03:44 +0200 Subject: [PATCH] MON-327 fix warning message on lb healthy monitors --- cloud/aws/alb/monitors-alb.tf | 2 +- cloud/aws/elb/monitors-elb.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/aws/alb/monitors-alb.tf b/cloud/aws/alb/monitors-alb.tf index 72b7099..8f936f1 100644 --- a/cloud/aws/alb/monitors-alb.tf +++ b/cloud/aws/alb/monitors-alb.tf @@ -1,6 +1,6 @@ resource "datadog_monitor" "ALB_no_healthy_instances" { count = "${var.alb_no_healthy_instances_enabled ? 1 : 0}" - name = "[${var.environment}] ALB healthy instances {{#is_alert}}at 0{{/is_alert}}{{#is_warning}}{{value}}at {{value}}%{{/is_warning}}" + name = "[${var.environment}] ALB healthy instances {{#is_alert}}is at 0{{/is_alert}}{{#is_warning}}is at {{value}}%{{/is_warning}}" type = "metric alert" message = "${coalesce(var.alb_no_healthy_instances_message, var.message)}" diff --git a/cloud/aws/elb/monitors-elb.tf b/cloud/aws/elb/monitors-elb.tf index a6c9497..4888fbc 100644 --- a/cloud/aws/elb/monitors-elb.tf +++ b/cloud/aws/elb/monitors-elb.tf @@ -1,6 +1,6 @@ resource "datadog_monitor" "ELB_no_healthy_instances" { count = "${var.elb_no_healthy_instance_enabled ? 1 : 0}" - name = "[${var.environment}] ELB healthy instances {{#is_alert}}at 0{{/is_alert}}{{#is_warning}}{{value}}at {{value}}%{{/is_warning}}" + name = "[${var.environment}] ELB healthy instances {{#is_alert}}is at 0{{/is_alert}}{{#is_warning}}is at {{value}}%{{/is_warning}}" message = "${coalesce(var.elb_no_healthy_instance_message, var.message)}" query = <