diff --git a/cloud/aws/alb/README.md b/cloud/aws/alb/README.md index 697643e..25aa0ca 100644 --- a/cloud/aws/alb/README.md +++ b/cloud/aws/alb/README.md @@ -32,7 +32,7 @@ Inputs |------|-------------|:----:|:-----:|:-----:| | alb_no_healthy_instances_message | Custom message for ALB no healthy instances monitor | string | `` | no | | alb_no_healthy_instances_silenced | Groups to mute for ALB no healthy instances monitor | map | `` | no | -| artificial_requests_count | Number of false requests used to mitigate false positive in case of low trafic | string | `0` | no | +| artificial_requests_count | Number of false requests used to mitigate false positive in case of low trafic | string | `5` | no | | delay | Delay in seconds for the metric evaluation | string | `900` | no | | environment | Architecture environment | string | - | yes | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | diff --git a/cloud/aws/alb/monitors-alb.tf b/cloud/aws/alb/monitors-alb.tf index e03c8d2..abff4a5 100644 --- a/cloud/aws/alb/monitors-alb.tf +++ b/cloud/aws/alb/monitors-alb.tf @@ -73,7 +73,7 @@ resource "datadog_monitor" "ALB_httpcode_elb_5xx" { message = "${coalesce(var.httpcode_elb_5xx_message, var.message)}" query = <` | no | | elb_4xx_threshold_critical | loadbalancer 4xx critical threshold in percentage | string | `10` | no | @@ -57,4 +58,4 @@ Inputs | delay | Delay in seconds for the metric evaluation | string | `900` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no | -| message | Message sent when an alert is triggered | string | - | yes | \ No newline at end of file +| message | Message sent when an alert is triggered | string | - | yes | diff --git a/cloud/aws/elb/inputs.tf b/cloud/aws/elb/inputs.tf index ef88673..c45c140 100644 --- a/cloud/aws/elb/inputs.tf +++ b/cloud/aws/elb/inputs.tf @@ -150,3 +150,9 @@ variable "elb_backend_latency_critical" { description = "latency critical threshold in seconds" default = 5 } + +variable "artificial_requests_count" { + default = 5 + description = "Number of false requests used to mitigate false positive in case of low trafic" +} + diff --git a/cloud/aws/elb/monitors-elb.tf b/cloud/aws/elb/monitors-elb.tf index 79ab870..90d4750 100644 --- a/cloud/aws/elb/monitors-elb.tf +++ b/cloud/aws/elb/monitors-elb.tf @@ -39,10 +39,10 @@ resource "datadog_monitor" "ELB_too_much_4xx" { message = "${coalesce(var.elb_4xx_message, var.message)}" query = < ${var.elb_4xx_threshold_critical} EOF @@ -75,10 +75,10 @@ resource "datadog_monitor" "ELB_too_much_5xx" { message = "${coalesce(var.elb_5xx_message, var.message)}" query = < ${var.elb_5xx_threshold_critical} EOF @@ -111,10 +111,10 @@ resource "datadog_monitor" "ELB_too_much_4xx_backend" { message = "${coalesce(var.elb_backend_4xx_message, var.message)}" query = < ${var.elb_backend_4xx_threshold_critical} EOF @@ -147,10 +147,10 @@ resource "datadog_monitor" "ELB_too_much_5xx_backend" { message = "${coalesce(var.elb_backend_5xx_message, var.message)}" query = < ${var.elb_backend_5xx_threshold_critical} EOF