From 57913a7385324dcf1c70ef5b7dd15c165266cb89 Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Wed, 26 Sep 2018 19:04:53 +0200 Subject: [PATCH] MON-308 add warning for part of unhealthy instances --- cloud/aws/alb/monitors-alb.tf | 9 ++++++--- cloud/aws/elb/monitors-elb.tf | 13 ++++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/cloud/aws/alb/monitors-alb.tf b/cloud/aws/alb/monitors-alb.tf index 4b6fcd3..70631f7 100644 --- a/cloud/aws/alb/monitors-alb.tf +++ b/cloud/aws/alb/monitors-alb.tf @@ -1,13 +1,15 @@ resource "datadog_monitor" "ALB_no_healthy_instances" { count = "${var.alb_no_healthy_instances_enabled ? 1 : 0}" - name = "[${var.environment}] ALB no healthy instances" + name = "[${var.environment}] ALB {{#is_alert}}no healthy instances{{/is_alert}}{{#is_warning}}{{value}}% of healthy instances{{/is_warning}}" type = "metric alert" message = "${coalesce(var.alb_no_healthy_instances_message, var.message)}" query = <