From 5f2a430d450de6a107c31369075a51fc726e4c3d Mon Sep 17 00:00:00 2001 From: Rafael Romero Carmona Date: Thu, 29 Aug 2019 13:08:34 +0100 Subject: [PATCH] MON-497 Warning threshold for memory limit increased from 80 to 85%. Removed the inputs for the critical threshold and the last of the service check. --- caas/docker/README.md | 4 +--- caas/docker/inputs.tf | 14 +------------- caas/docker/monitors-docker.tf | 4 ++-- caas/docker/outputs.tf | 10 +++++----- 4 files changed, 9 insertions(+), 23 deletions(-) diff --git a/caas/docker/README.md b/caas/docker/README.md index c1af2f2..7188671 100644 --- a/caas/docker/README.md +++ b/caas/docker/README.md @@ -32,17 +32,15 @@ Creates DataDog monitors with the following checks: | memory\_used\_extra\_tags | Extra tags for Container Memory Usage monitor | list(string) | `[]` | no | | memory\_used\_message | Custom message for the Container Memory Usage monitor | string | `""` | no | | memory\_used\_threshold\_critical | Container Memory Usage critical threshold | string | `"90"` | no | -| memory\_used\_threshold\_warning | Container Memory Usage warning threshold | string | `"80"` | no | +| memory\_used\_threshold\_warning | Container Memory Usage warning threshold | string | `"85"` | no | | memory\_used\_time\_aggregator | Time aggregator for the Container Memory Usage monitor | string | `"min"` | no | | memory\_used\_timeframe | Timeframe for the Container Memory Usage monitor | string | `"last_5m"` | no | | message | Message sent when an alert is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | | not\_responding\_enabled | Flag to enable Docker does not respond monitor | string | `"true"` | no | | not\_responding\_extra\_tags | Extra tags for Docker does not respond monitor | list(string) | `[]` | no | -| not\_responding\_last | Parameter 'last' for the service check | string | `"6"` | no | | not\_responding\_message | Custom message for Docker does not respond monitor | string | `""` | no | | not\_responding\_no\_data\_timeframe | Docker does not respond monitor no data timeframe | string | `"10"` | no | -| not\_responding\_threshold\_critical | Docker does not respond monitor (warning threshold) | string | `"5"` | no | | not\_responding\_threshold\_warning | Docker does not respond monitor (warning threshold) | string | `"3"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | diff --git a/caas/docker/inputs.tf b/caas/docker/inputs.tf index 8f06b2a..b78c3df 100644 --- a/caas/docker/inputs.tf +++ b/caas/docker/inputs.tf @@ -54,24 +54,12 @@ variable "not_responding_message" { default = "" } -variable "not_responding_last" { - description = "Parameter 'last' for the service check" - type = string - default = 6 -} - variable "not_responding_threshold_warning" { description = "Docker does not respond monitor (warning threshold)" type = string default = 3 } -variable "not_responding_threshold_critical" { - description = "Docker does not respond monitor (warning threshold)" - type = string - default = 5 -} - variable "not_responding_no_data_timeframe" { description = "Docker does not respond monitor no data timeframe" type = string @@ -114,7 +102,7 @@ variable "memory_used_timeframe" { variable "memory_used_threshold_warning" { description = "Container Memory Usage warning threshold" type = string - default = 80 + default = 85 } variable "memory_used_threshold_critical" { diff --git a/caas/docker/monitors-docker.tf b/caas/docker/monitors-docker.tf index 39329fb..84678b7 100644 --- a/caas/docker/monitors-docker.tf +++ b/caas/docker/monitors-docker.tf @@ -8,12 +8,12 @@ resource "datadog_monitor" "not_responding" { type = "service check" query = <