Merge branch 'MON-327_fix_lb_warn' into 'master'

MON-327 fix warning message on lb healthy monitors

Closes MON-327

See merge request claranet/pt-monitoring/projects/datadog/terraform/monitors!46
This commit is contained in:
Quentin Manfroi 2019-04-23 17:20:38 +02:00
commit e4369da176
2 changed files with 2 additions and 2 deletions

View File

@ -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)}"

View File

@ -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 = <<EOF