diff --git a/cloud/azure/apimanagement/README.md b/cloud/azure/apimanagement/README.md index d8313e8..b7cea65 100644 --- a/cloud/azure/apimanagement/README.md +++ b/cloud/azure/apimanagement/README.md @@ -34,6 +34,7 @@ Creates DataDog monitors with the following checks: | failed_requests_silenced | Groups to mute for API Management failed requests monitor | map | `{}` | no | | failed_requests_threshold_critical | Maximum acceptable percent of failed requests | string | `90` | no | | failed_requests_threshold_warning | Warning regarding acceptable percent of failed requests | string | `50` | no | +| failed_requests_time_aggregator | Monitor aggregator for API Management failed requests [available values: min, max or avg] | string | `min` | no | | failed_requests_timeframe | Monitor timeframe for API Management failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no | @@ -45,6 +46,7 @@ Creates DataDog monitors with the following checks: | other_requests_silenced | Groups to mute for API Management other requests monitor | map | `{}` | no | | other_requests_threshold_critical | Maximum acceptable percent of other requests | string | `90` | no | | other_requests_threshold_warning | Warning regarding acceptable percent of other requests | string | `50` | no | +| other_requests_time_aggregator | Monitor aggregator for API Management other requests [available values: min, max or avg] | string | `min` | no | | other_requests_timeframe | Monitor timeframe for API Management other requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | | status_enabled | Flag to enable API Management status monitor | string | `true` | no | | status_extra_tags | Extra tags for API Management status monitor | list | `[]` | no | @@ -58,6 +60,7 @@ Creates DataDog monitors with the following checks: | successful_requests_silenced | Groups to mute for API Management successful requests monitor | map | `{}` | no | | successful_requests_threshold_critical | Minimum acceptable percent of successful requests | string | `10` | no | | successful_requests_threshold_warning | Warning regarding acceptable percent of successful requests | string | `30` | no | +| successful_requests_time_aggregator | Monitor aggregator for API Management successful requests [available values: min, max or avg] | string | `max` | no | | successful_requests_timeframe | Monitor timeframe for API Management successful requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | | unauthorized_requests_enabled | Flag to enable API Management unauthorized requests monitor | string | `true` | no | | unauthorized_requests_extra_tags | Extra tags for API Management unauthorized requests monitor | list | `[]` | no | @@ -65,6 +68,7 @@ Creates DataDog monitors with the following checks: | unauthorized_requests_silenced | Groups to mute for API Management unauthorized requests monitor | map | `{}` | no | | unauthorized_requests_threshold_critical | Maximum acceptable percent of unauthorized requests | string | `90` | no | | unauthorized_requests_threshold_warning | Warning regarding acceptable percent of unauthorized requests | string | `50` | no | +| unauthorized_requests_time_aggregator | Monitor aggregator for API Management unauthorized requests [available values: min, max or avg] | string | `min` | no | | unauthorized_requests_timeframe | Monitor timeframe for API Management unauthorized requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | ## Outputs diff --git a/cloud/azure/apimanagement/inputs.tf b/cloud/azure/apimanagement/inputs.tf index 7651f80..1fc6def 100644 --- a/cloud/azure/apimanagement/inputs.tf +++ b/cloud/azure/apimanagement/inputs.tf @@ -90,6 +90,12 @@ variable "failed_requests_message" { default = "" } +variable "failed_requests_time_aggregator" { + description = "Monitor aggregator for API Management failed requests [available values: min, max or avg]" + type = "string" + default = "min" +} + variable "failed_requests_timeframe" { description = "Monitor timeframe for API Management failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" @@ -130,6 +136,12 @@ variable "other_requests_message" { default = "" } +variable "other_requests_time_aggregator" { + description = "Monitor aggregator for API Management other requests [available values: min, max or avg]" + type = "string" + default = "min" +} + variable "other_requests_timeframe" { description = "Monitor timeframe for API Management other requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" @@ -170,6 +182,12 @@ variable "unauthorized_requests_message" { default = "" } +variable "unauthorized_requests_time_aggregator" { + description = "Monitor aggregator for API Management unauthorized requests [available values: min, max or avg]" + type = "string" + default = "min" +} + variable "unauthorized_requests_timeframe" { description = "Monitor timeframe for API Management unauthorized requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" @@ -210,6 +228,12 @@ variable "successful_requests_message" { default = "" } +variable "successful_requests_time_aggregator" { + description = "Monitor aggregator for API Management successful requests [available values: min, max or avg]" + type = "string" + default = "max" +} + variable "successful_requests_timeframe" { description = "Monitor timeframe for API Management successful requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" diff --git a/cloud/azure/apimanagement/monitors-azure-apimanagement.tf b/cloud/azure/apimanagement/monitors-azure-apimanagement.tf index d9bb8dc..19fa02f 100644 --- a/cloud/azure/apimanagement/monitors-azure-apimanagement.tf +++ b/cloud/azure/apimanagement/monitors-azure-apimanagement.tf @@ -34,7 +34,7 @@ resource "datadog_monitor" "apimgt_failed_requests" { message = "${coalesce(var.failed_requests_message, var.message)}" query = < ${var.failed_requests_threshold_critical} @@ -67,7 +67,7 @@ resource "datadog_monitor" "apimgt_other_requests" { message = "${coalesce(var.other_requests_message, var.message)}" query = < ${var.other_requests_threshold_critical} @@ -100,7 +100,7 @@ resource "datadog_monitor" "apimgt_unauthorized_requests" { message = "${coalesce(var.unauthorized_requests_message, var.message)}" query = < ${var.unauthorized_requests_threshold_critical} @@ -133,7 +133,7 @@ resource "datadog_monitor" "apimgt_successful_requests" { message = "${coalesce(var.successful_requests_message, var.message)}" query = < ${var.http_5xx_requests_threshold_critical} @@ -103,7 +103,7 @@ resource "datadog_monitor" "appservices_http_4xx_errors_count" { message = "${coalesce(var.http_4xx_requests_message, var.message)}" query = < ${var.http_4xx_requests_threshold_critical} @@ -136,7 +136,7 @@ resource "datadog_monitor" "appservices_http_success_status_rate" { message = "${coalesce(var.http_successful_requests_message, var.message)}" query = < ${var.failed_requests_rate_thresold_critical} @@ -66,7 +66,7 @@ resource "datadog_monitor" "eventhub_errors" { message = "${coalesce(var.errors_rate_message, var.message)}" query = < ${var.user_errors_threshold_critical} @@ -98,7 +98,7 @@ resource "datadog_monitor" "service_bus_server_errors" { message = "${coalesce(var.server_errors_message, var.message)}" query = < ${var.server_errors_threshold_critical} diff --git a/cloud/azure/stream-analytics/README.md b/cloud/azure/stream-analytics/README.md index 94c95cb..4515ca4 100644 --- a/cloud/azure/stream-analytics/README.md +++ b/cloud/azure/stream-analytics/README.md @@ -42,6 +42,7 @@ Creates DataDog monitors with the following checks: | failed_function_requests_silenced | Groups to mute for Stream Analytics failed requests monitor | map | `{}` | no | | failed_function_requests_threshold_critical | Failed Function Request rate limit (critical threshold) | string | `10` | no | | failed_function_requests_threshold_warning | Failed Function Request rate limit (warning threshold) | string | `0` | no | +| failed_function_requests_time_aggregator | Monitor aggregator for Stream Analytics failed requests [available values: min, max or avg] | string | `min` | no | | failed_function_requests_timeframe | Monitor timeframe for Stream Analytics failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no | diff --git a/cloud/azure/stream-analytics/inputs.tf b/cloud/azure/stream-analytics/inputs.tf index 677d0a3..b834f88 100644 --- a/cloud/azure/stream-analytics/inputs.tf +++ b/cloud/azure/stream-analytics/inputs.tf @@ -136,6 +136,12 @@ variable "failed_function_requests_message" { default = "" } +variable "failed_function_requests_time_aggregator" { + description = "Monitor aggregator for Stream Analytics failed requests [available values: min, max or avg]" + type = "string" + default = "min" +} + variable "failed_function_requests_timeframe" { description = "Monitor timeframe for Stream Analytics failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" diff --git a/cloud/azure/stream-analytics/monitors-stream-analytics.tf b/cloud/azure/stream-analytics/monitors-stream-analytics.tf index b13ba29..8ea92a7 100644 --- a/cloud/azure/stream-analytics/monitors-stream-analytics.tf +++ b/cloud/azure/stream-analytics/monitors-stream-analytics.tf @@ -65,7 +65,7 @@ resource "datadog_monitor" "failed_function_requests" { message = "${coalesce(var.failed_function_requests_message, var.message)}" query = < ${var.failed_function_requests_threshold_critical}