diff --git a/cloud/aws/alb/README.md b/cloud/aws/alb/README.md index d08137f..9aa2189 100644 --- a/cloud/aws/alb/README.md +++ b/cloud/aws/alb/README.md @@ -16,10 +16,10 @@ module "datadog-monitors-cloud-aws-alb" { Creates DataDog monitors with the following checks: +- ALB healthy instances - ALB HTTP code 4xx - ALB HTTP code 5xx - ALB latency -- ALB no healthy instances - ALB target HTTP code 4xx - ALB target HTTP code 5xx diff --git a/cloud/aws/alb/monitors-alb.tf b/cloud/aws/alb/monitors-alb.tf index 052a8a4..43f6103 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 healthy instances {{#is_alert}}at 0{{/is_alert}}{{#is_warning}}{{value}}at {{value}}%{{/is_warning}}" type = "metric alert" message = "${coalesce(var.alb_no_healthy_instances_message, var.message)}" query = <