diff --git a/middleware/nginx/README.md b/middleware/nginx/README.md index 2ab227d..6a88e83 100644 --- a/middleware/nginx/README.md +++ b/middleware/nginx/README.md @@ -32,8 +32,9 @@ Creates DataDog monitors with the following checks: | nginx_connect_enabled | Flag to enable Nginx status monitor | string | `true` | no | | nginx_connect_extra_tags | Extra tags for Nginx process monitor | list | `` | no | | nginx_connect_message | Custom message for Nginx status monitor | string | `` | no | +| nginx_connect_no_data_timeframe | Nginx status monitor no data timeframe | string | `10` | no | | nginx_connect_silenced | Groups to mute for Nginx status monitor | map | `` | no | -| nginx_connect_threshold_critical | Nginx status monitor (critical threshold) | string | `1.1754943508222875e-38` | no | +| nginx_connect_threshold_warning | Nginx status monitor (warning threshold) | string | `3` | no | | nginx_dropped_extra_tags | Extra tags for Nginx dropped connections monitor | list | `` | no | | nginx_dropped_message | Custom message for Nginx dropped connections monitor | string | `` | no | | nginx_dropped_silenced | Groups to mute for Nginx dropped connections monitor | map | `` | no | diff --git a/middleware/nginx/inputs.tf b/middleware/nginx/inputs.tf index 30345ad..786bdb8 100644 --- a/middleware/nginx/inputs.tf +++ b/middleware/nginx/inputs.tf @@ -55,10 +55,16 @@ variable "nginx_connect_message" { default = "" } -variable "nginx_connect_threshold_critical" { - description = "Nginx status monitor (critical threshold)" +variable "nginx_connect_threshold_warning" { + description = "Nginx status monitor (warning threshold)" type = "string" - default = "1.1754943508222875e-38" + default = 3 +} + +variable "nginx_connect_no_data_timeframe" { + description = "Nginx status monitor no data timeframe" + type = "string" + default = 10 } variable "nginx_dropped_silenced" { diff --git a/middleware/nginx/monitors-nginx.tf b/middleware/nginx/monitors-nginx.tf index ade45f1..3ab9211 100644 --- a/middleware/nginx/monitors-nginx.tf +++ b/middleware/nginx/monitors-nginx.tf @@ -6,15 +6,16 @@ resource "datadog_monitor" "datadog_nginx_process" { type = "service check" query = <