From ca5f0033708c16c5280cd679f3934ccf3fc93497 Mon Sep 17 00:00:00 2001 From: Alexandre Gaillet Date: Tue, 20 Mar 2018 17:47:41 +0100 Subject: [PATCH] MON-139 - Updated ALB monitors name with new best practice --- cloud/aws/alb/monitors-alb.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cloud/aws/alb/monitors-alb.tf b/cloud/aws/alb/monitors-alb.tf index 8bc7de3..89c3fd9 100644 --- a/cloud/aws/alb/monitors-alb.tf +++ b/cloud/aws/alb/monitors-alb.tf @@ -36,7 +36,7 @@ resource "datadog_monitor" "ALB_no_healthy_instances" { } resource "datadog_monitor" "ALB_latency" { - name = "[${var.environment}] ALB latency {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)" + name = "[${var.environment}] ALB latency {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}" type = "metric alert" message = "${var.message}" @@ -64,7 +64,7 @@ resource "datadog_monitor" "ALB_latency" { } resource "datadog_monitor" "ALB_httpcode_elb_5xx" { - name = "[${var.environment}] ALB HTTP code 5xx {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)" + name = "[${var.environment}] ALB HTTP code 5xx {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}" type = "metric alert" message = "${var.message}" @@ -93,7 +93,7 @@ resource "datadog_monitor" "ALB_httpcode_elb_5xx" { } resource "datadog_monitor" "ALB_httpcode_elb_4xx" { - name = "[${var.environment}] ALB HTTP code 4xx {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)" + name = "[${var.environment}] ALB HTTP code 4xx {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}" type = "metric alert" message = "${var.message}" @@ -122,7 +122,7 @@ resource "datadog_monitor" "ALB_httpcode_elb_4xx" { } resource "datadog_monitor" "ALB_httpcode_target_5xx" { - name = "[${var.environment}] ALB target HTTP code 5xx {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)" + name = "[${var.environment}] ALB target HTTP code 5xx {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}" type = "metric alert" message = "${var.message}" @@ -151,7 +151,7 @@ resource "datadog_monitor" "ALB_httpcode_target_5xx" { } resource "datadog_monitor" "ALB_httpcode_target_4xx" { - name = "[${var.environment}] ALB target HTTP code 4xx {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)" + name = "[${var.environment}] ALB target HTTP code 4xx {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}" type = "metric alert" message = "${var.message}"