MON-139 fix missing space in templating name

This commit is contained in:
Quentin Manfroi 2018-03-22 20:06:08 +01:00
parent ca5f003370
commit ca8ee7a955

View File

@ -36,7 +36,7 @@ resource "datadog_monitor" "ALB_no_healthy_instances" {
} }
resource "datadog_monitor" "ALB_latency" { resource "datadog_monitor" "ALB_latency" {
name = "[${var.environment}] ALB latency {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}" name = "[${var.environment}] ALB latency {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
type = "metric alert" type = "metric alert"
message = "${var.message}" message = "${var.message}"
@ -64,7 +64,7 @@ resource "datadog_monitor" "ALB_latency" {
} }
resource "datadog_monitor" "ALB_httpcode_elb_5xx" { resource "datadog_monitor" "ALB_httpcode_elb_5xx" {
name = "[${var.environment}] ALB HTTP code 5xx {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}" 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" type = "metric alert"
message = "${var.message}" message = "${var.message}"
@ -93,7 +93,7 @@ resource "datadog_monitor" "ALB_httpcode_elb_5xx" {
} }
resource "datadog_monitor" "ALB_httpcode_elb_4xx" { resource "datadog_monitor" "ALB_httpcode_elb_4xx" {
name = "[${var.environment}] ALB HTTP code 4xx {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}" 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" type = "metric alert"
message = "${var.message}" message = "${var.message}"
@ -122,7 +122,7 @@ resource "datadog_monitor" "ALB_httpcode_elb_4xx" {
} }
resource "datadog_monitor" "ALB_httpcode_target_5xx" { resource "datadog_monitor" "ALB_httpcode_target_5xx" {
name = "[${var.environment}] ALB target HTTP code 5xx {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}" 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" type = "metric alert"
message = "${var.message}" message = "${var.message}"
@ -151,7 +151,7 @@ resource "datadog_monitor" "ALB_httpcode_target_5xx" {
} }
resource "datadog_monitor" "ALB_httpcode_target_4xx" { resource "datadog_monitor" "ALB_httpcode_target_4xx" {
name = "[${var.environment}] ALB target HTTP code 4xx {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}" 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" type = "metric alert"
message = "${var.message}" message = "${var.message}"