From 70894689a2b6b117f823948972f761fd40928959 Mon Sep 17 00:00:00 2001 From: Rafael Romero Carmona Date: Fri, 30 Aug 2019 12:26:20 +0100 Subject: [PATCH] MON-499 Service checks modified to use the standard structure and values. --- network/dns/README.md | 2 - network/dns/inputs.tf | 12 ------ network/dns/monitors-dns.tf | 4 +- network/http/ssl/README.md | 4 +- network/http/ssl/inputs.tf | 14 +------ network/http/ssl/monitors-ssl.tf | 4 +- network/http/webcheck/README.md | 5 +-- network/http/webcheck/inputs.tf | 18 --------- network/http/webcheck/monitors-webcheck.tf | 5 +-- network/tls/README.md | 11 +----- network/tls/inputs.tf | 44 +--------------------- network/tls/monitors-tls.tf | 13 +++---- 12 files changed, 18 insertions(+), 118 deletions(-) diff --git a/network/dns/README.md b/network/dns/README.md index e33a8bf..533d1de 100644 --- a/network/dns/README.md +++ b/network/dns/README.md @@ -24,10 +24,8 @@ Creates DataDog monitors with the following checks: |------|-------------|:----:|:-----:|:-----:| | cannot\_resolve\_enabled | Flag to enable DNS cannot resolve monitor | string | `"true"` | no | | cannot\_resolve\_extra\_tags | Extra tags for DNS cannot resolve monitor | list(string) | `[]` | no | -| cannot\_resolve\_last | Parameter 'last' for the service check | string | `"6"` | no | | cannot\_resolve\_message | Custom message for DNS cannot resolve monitor | string | `""` | no | | cannot\_resolve\_no\_data\_timeframe | DNS cannot resolve monitor no data timeframe | string | `"10"` | no | -| cannot\_resolve\_threshold\_critical | DNS cannot resolve monitor (warning threshold) | string | `"5"` | no | | cannot\_resolve\_threshold\_warning | DNS cannot resolve monitor (warning threshold) | string | `"3"` | no | | environment | Architecture Environment | string | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | string | `"15"` | no | diff --git a/network/dns/inputs.tf b/network/dns/inputs.tf index dfd4a03..83e766f 100644 --- a/network/dns/inputs.tf +++ b/network/dns/inputs.tf @@ -54,24 +54,12 @@ variable "cannot_resolve_message" { default = "" } -variable "cannot_resolve_last" { - description = "Parameter 'last' for the service check" - type = string - default = 6 -} - variable "cannot_resolve_threshold_warning" { description = "DNS cannot resolve monitor (warning threshold)" type = string default = 3 } -variable "cannot_resolve_threshold_critical" { - description = "DNS cannot resolve monitor (warning threshold)" - type = string - default = 5 -} - variable "cannot_resolve_no_data_timeframe" { description = "DNS cannot resolve monitor no data timeframe" type = string diff --git a/network/dns/monitors-dns.tf b/network/dns/monitors-dns.tf index 48f1c8c..8aee37b 100644 --- a/network/dns/monitors-dns.tf +++ b/network/dns/monitors-dns.tf @@ -8,12 +8,12 @@ resource "datadog_monitor" "cannot_resolve" { type = "service check" query = <