From 666e87a70fa933f9e8e944a2f21abc338b5bcc04 Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Tue, 21 Aug 2018 12:07:17 +0200 Subject: [PATCH] MON-289 auto update --- middleware/nginx/README.md | 8 ++++++++ middleware/nginx/monitors-nginx.tf | 2 -- middleware/nginx/outputs.tf | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/middleware/nginx/README.md b/middleware/nginx/README.md index 6b59e94..f4ff998 100644 --- a/middleware/nginx/README.md +++ b/middleware/nginx/README.md @@ -17,6 +17,7 @@ module "datadog-monitors-middleware-nginx" { Creates DataDog monitors with the following checks: - Nginx vhost status does not respond +- Nginx dropped connections ## Inputs @@ -33,11 +34,18 @@ Creates DataDog monitors with the following checks: | nginx_connect_message | Custom message for Nginx status monitor | string | `` | 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_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 | +| nginx_dropped_threshold_critical | php fpm busy critical threshold | string | `0` | no | +| nginx_dropped_time_aggregator | Monitor aggregator for Nginx dropped connections [available values: min, max or avg] | string | `min` | no | +| nginx_dropped_timeframe | Monitor timeframe for Nginx dropped connections [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | ## Outputs | Name | Description | |------|-------------| +| datadog_nginx_dropped_connections_id | id for monitor datadog_nginx_dropped_connections | | datadog_nginx_process_id | id for monitor datadog_nginx_process | ## Related documentation diff --git a/middleware/nginx/monitors-nginx.tf b/middleware/nginx/monitors-nginx.tf index 747590b..6868b38 100644 --- a/middleware/nginx/monitors-nginx.tf +++ b/middleware/nginx/monitors-nginx.tf @@ -54,5 +54,3 @@ resource "datadog_monitor" "datadog_nginx_dropped_connections" { tags = ["env:${var.environment}", "type:middleware", "provider:nginx", "resource:nginx", "team:claranet", "created-by:terraform", "${var.nginx_dropped_extra_tags}"] } - - diff --git a/middleware/nginx/outputs.tf b/middleware/nginx/outputs.tf index f533cec..ec41806 100644 --- a/middleware/nginx/outputs.tf +++ b/middleware/nginx/outputs.tf @@ -2,3 +2,8 @@ output "datadog_nginx_process_id" { description = "id for monitor datadog_nginx_process" value = "${datadog_monitor.datadog_nginx_process.*.id}" } + +output "datadog_nginx_dropped_connections_id" { + description = "id for monitor datadog_nginx_dropped_connections" + value = "${datadog_monitor.datadog_nginx_dropped_connections.id}" +}