From f85b57620aeddd0222f50f825bec981f78ef45de Mon Sep 17 00:00:00 2001 From: Boris Rousseau Date: Mon, 26 Feb 2018 09:53:05 +0100 Subject: [PATCH] MON-48: Added artificial_requests_count to mitigate false positive in case of low trafic MON-48: format issue MON-48: format issue MON-48: changed variable name MON-48: changed variable name MON-48: renamed to artificial_requests_count --- cloud/aws/apigateway/README.md | 3 ++- cloud/aws/apigateway/inputs.tf | 7 ++++++- cloud/aws/apigateway/monitors-api.tf | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/cloud/aws/apigateway/README.md b/cloud/aws/apigateway/README.md index 1dab021..439aae4 100644 --- a/cloud/aws/apigateway/README.md +++ b/cloud/aws/apigateway/README.md @@ -28,7 +28,7 @@ Inputs | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-----:| | delay | Delay in seconds for the metric evaluation | string | `900` | no | -| environment | Architecture environment | string | - | yes | +| environment | Environment | string | - | yes | | filter_tags | Tags used for custom filtering | string | `*` | no | | http_4xx_requests_threshold_critical | Maximum critical acceptable percent of 4xx errors | string | `30` | no | | http_4xx_requests_threshold_warning | Maximum warning acceptable percent of 4xx errors | string | `15` | no | @@ -37,6 +37,7 @@ Inputs | message | Message sent when a monitor is triggered | string | - | yes | | latency_threshold_critical | Alerting threshold in miliseconds | string | `800` | no | | latency_threshold_warning | Warning threshold in miliseconds | string | `400` | no | +| artificial_requests_count | Number of false requests used to mitigate false positive in case of low trafic | string | `0` | no | Related documentation --------------------- diff --git a/cloud/aws/apigateway/inputs.tf b/cloud/aws/apigateway/inputs.tf index 98b5067..a38f791 100644 --- a/cloud/aws/apigateway/inputs.tf +++ b/cloud/aws/apigateway/inputs.tf @@ -1,5 +1,5 @@ variable "environment" { - description = "Architecture environment" + description = "Environment" type = "string" } @@ -58,3 +58,8 @@ variable "http_4xx_requests_threshold_warning" { default = 15 description = "Maximum warning acceptable percent of 4xx errors" } + +variable "artificial_requests_count" { + default = 0 + description = "Number of false requests used to mitigate false positive in case of low trafic" +} diff --git a/cloud/aws/apigateway/monitors-api.tf b/cloud/aws/apigateway/monitors-api.tf index 1e66ad2..85fcef1 100644 --- a/cloud/aws/apigateway/monitors-api.tf +++ b/cloud/aws/apigateway/monitors-api.tf @@ -36,7 +36,7 @@ resource "datadog_monitor" "API_http_5xx_errors_count" { query = < ${var.http_5xx_requests_threshold_critical} EOF @@ -66,7 +66,7 @@ resource "datadog_monitor" "API_http_4xx_errors_count" { query = < ${var.http_4xx_requests_threshold_critical} EOF