diff --git a/caas/docker/README.md b/caas/docker/README.md index 43152de..2508595 100644 --- a/caas/docker/README.md +++ b/caas/docker/README.md @@ -42,6 +42,7 @@ Creates DataDog monitors with the following checks: | 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\_warning | Docker does not respond monitor (warning threshold) | string | `"3"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/caas/docker/inputs.tf b/caas/docker/inputs.tf index b78c3df..9fdbb7e 100644 --- a/caas/docker/inputs.tf +++ b/caas/docker/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/caas/docker/monitors-docker.tf b/caas/docker/monitors-docker.tf index b6e0de2..712a057 100644 --- a/caas/docker/monitors-docker.tf +++ b/caas/docker/monitors-docker.tf @@ -18,7 +18,7 @@ EOQ new_host_delay = var.new_host_delay no_data_timeframe = var.not_responding_no_data_timeframe - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false locked = false timeout_h = 0 diff --git a/caas/kubernetes/ark/README.md b/caas/kubernetes/ark/README.md index ecd4d82..17b5987 100644 --- a/caas/kubernetes/ark/README.md +++ b/caas/kubernetes/ark/README.md @@ -34,6 +34,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/caas/kubernetes/ark/inputs.tf b/caas/kubernetes/ark/inputs.tf index c62fb1c..0601d8c 100644 --- a/caas/kubernetes/ark/inputs.tf +++ b/caas/kubernetes/ark/inputs.tf @@ -38,6 +38,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Datadog monitors variables variable "ark_schedules_monitor_message" { diff --git a/caas/kubernetes/ark/monitors-ark.tf b/caas/kubernetes/ark/monitors-ark.tf index c9163ef..152f6d0 100644 --- a/caas/kubernetes/ark/monitors-ark.tf +++ b/caas/kubernetes/ark/monitors-ark.tf @@ -17,7 +17,7 @@ EOQ new_host_delay = var.new_host_delay no_data_timeframe = var.ark_schedules_monitor_no_data_timeframe - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/caas/kubernetes/cluster/README.md b/caas/kubernetes/cluster/README.md index 5750204..c111576 100644 --- a/caas/kubernetes/cluster/README.md +++ b/caas/kubernetes/cluster/README.md @@ -33,6 +33,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/caas/kubernetes/cluster/inputs.tf b/caas/kubernetes/cluster/inputs.tf index 519f563..2b6afb2 100644 --- a/caas/kubernetes/cluster/inputs.tf +++ b/caas/kubernetes/cluster/inputs.tf @@ -38,6 +38,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Datadog monitors variables variable "apiserver_enabled" { diff --git a/caas/kubernetes/cluster/monitors-k8s-cluster.tf b/caas/kubernetes/cluster/monitors-k8s-cluster.tf index 9c434a8..29d4142 100644 --- a/caas/kubernetes/cluster/monitors-k8s-cluster.tf +++ b/caas/kubernetes/cluster/monitors-k8s-cluster.tf @@ -15,7 +15,7 @@ EOQ } new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/caas/kubernetes/ingress/vts/README.md b/caas/kubernetes/ingress/vts/README.md index 800804f..ca1ae86 100644 --- a/caas/kubernetes/ingress/vts/README.md +++ b/caas/kubernetes/ingress/vts/README.md @@ -45,6 +45,7 @@ Creates DataDog monitors with the following checks: | ingress\_5xx\_timeframe | Monitor timeframe for Ingress 5xx errors [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/caas/kubernetes/ingress/vts/inputs.tf b/caas/kubernetes/ingress/vts/inputs.tf index 669a43e..d8820d2 100644 --- a/caas/kubernetes/ingress/vts/inputs.tf +++ b/caas/kubernetes/ingress/vts/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/caas/kubernetes/node/README.md b/caas/kubernetes/node/README.md index e351404..ffca797 100644 --- a/caas/kubernetes/node/README.md +++ b/caas/kubernetes/node/README.md @@ -63,6 +63,7 @@ Creates DataDog monitors with the following checks: | node\_unschedulable\_message | Custom message for node unschedulable monitor | string | `""` | no | | node\_unschedulable\_time\_aggregator | Monitor aggregator for node unschedulable [available values: min, max or avg] | string | `"min"` | no | | node\_unschedulable\_timeframe | Monitor timeframe for node unschedulable [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_1h"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | ready\_enabled | Flag to enable Node ready monitor | string | `"true"` | no | | ready\_extra\_tags | Extra tags for Node ready monitor | list(string) | `[]` | no | diff --git a/caas/kubernetes/node/inputs.tf b/caas/kubernetes/node/inputs.tf index 967b8d9..1514ae2 100644 --- a/caas/kubernetes/node/inputs.tf +++ b/caas/kubernetes/node/inputs.tf @@ -38,6 +38,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Datadog monitors variables variable "disk_pressure_enabled" { diff --git a/caas/kubernetes/node/monitors-k8s-node.tf b/caas/kubernetes/node/monitors-k8s-node.tf index f785d8d..21f73ff 100644 --- a/caas/kubernetes/node/monitors-k8s-node.tf +++ b/caas/kubernetes/node/monitors-k8s-node.tf @@ -138,7 +138,7 @@ EOQ } new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/caas/kubernetes/pod/README.md b/caas/kubernetes/pod/README.md index d8ba3d5..b2d8af2 100644 --- a/caas/kubernetes/pod/README.md +++ b/caas/kubernetes/pod/README.md @@ -38,6 +38,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | pod\_phase\_status\_enabled | Flag to enable Pod phase status monitor | string | `"true"` | no | | pod\_phase\_status\_extra\_tags | Extra tags for Pod phase status monitor | list(string) | `[]` | no | | pod\_phase\_status\_message | Custom message for Pod phase status monitor | string | `""` | no | diff --git a/caas/kubernetes/pod/inputs.tf b/caas/kubernetes/pod/inputs.tf index b952134..cdf6687 100644 --- a/caas/kubernetes/pod/inputs.tf +++ b/caas/kubernetes/pod/inputs.tf @@ -38,6 +38,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Datadog monitors variables variable "pod_phase_status_enabled" { diff --git a/caas/kubernetes/workload/README.md b/caas/kubernetes/workload/README.md index 61f8177..588d308 100644 --- a/caas/kubernetes/workload/README.md +++ b/caas/kubernetes/workload/README.md @@ -41,6 +41,7 @@ Creates DataDog monitors with the following checks: | job\_threshold\_warning | Job monitor (warning threshold) | string | `"3"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | replica\_available\_enabled | Flag to enable Available replica monitor | string | `"true"` | no | | replica\_available\_extra\_tags | Extra tags for Available replicamonitor | list(string) | `[]` | no | diff --git a/caas/kubernetes/workload/inputs.tf b/caas/kubernetes/workload/inputs.tf index c1d4598..6c44b2b 100644 --- a/caas/kubernetes/workload/inputs.tf +++ b/caas/kubernetes/workload/inputs.tf @@ -38,6 +38,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Datadog monitors variables variable "job_enabled" { diff --git a/cloud/aws/alb/README.md b/cloud/aws/alb/README.md index 31255bc..e51fe96 100644 --- a/cloud/aws/alb/README.md +++ b/cloud/aws/alb/README.md @@ -76,6 +76,7 @@ Creates DataDog monitors with the following checks: | latency\_timeframe | Monitor timeframe for ALB latency [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/aws/alb/inputs.tf b/cloud/aws/alb/inputs.tf index 1de1f12..c886442 100644 --- a/cloud/aws/alb/inputs.tf +++ b/cloud/aws/alb/inputs.tf @@ -39,6 +39,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Datadog monitors variables variable "alb_no_healthy_instances_enabled" { diff --git a/cloud/aws/alb/monitors-alb.tf b/cloud/aws/alb/monitors-alb.tf index 8b1c310..d17f1c9 100644 --- a/cloud/aws/alb/monitors-alb.tf +++ b/cloud/aws/alb/monitors-alb.tf @@ -19,7 +19,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 require_full_window = false timeout_h = 0 diff --git a/cloud/aws/apigateway/README.md b/cloud/aws/apigateway/README.md index 7ee01fd..a16d4a1 100644 --- a/cloud/aws/apigateway/README.md +++ b/cloud/aws/apigateway/README.md @@ -51,6 +51,7 @@ Creates DataDog monitors with the following checks: | latency\_timeframe | Monitor timeframe for API latency [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/aws/apigateway/inputs.tf b/cloud/aws/apigateway/inputs.tf index 52723f3..174bc15 100644 --- a/cloud/aws/apigateway/inputs.tf +++ b/cloud/aws/apigateway/inputs.tf @@ -27,6 +27,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + ################################### ### LATENCY VARIABLES ### ################################### diff --git a/cloud/aws/beanstalk/README.md b/cloud/aws/beanstalk/README.md index cfef209..5e337fd 100644 --- a/cloud/aws/beanstalk/README.md +++ b/cloud/aws/beanstalk/README.md @@ -53,6 +53,7 @@ Creates DataDog monitors with the following checks: | health\_timeframe | Monitor timeframe for beanstalk health [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_10m"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | root\_filesystem\_usage\_aggregator | Monitor aggregator for beanstalk instance file system usage [available values: min, max or avg] | string | `"max"` | no | | root\_filesystem\_usage\_enabled | Flag to enable Beanstalk instance file system usage monitor | string | `"true"` | no | diff --git a/cloud/aws/beanstalk/inputs.tf b/cloud/aws/beanstalk/inputs.tf index cfd5c7d..bf1f881 100644 --- a/cloud/aws/beanstalk/inputs.tf +++ b/cloud/aws/beanstalk/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/beanstalk/monitors-beanstalk.tf b/cloud/aws/beanstalk/monitors-beanstalk.tf index a9e3232..4492bac 100644 --- a/cloud/aws/beanstalk/monitors-beanstalk.tf +++ b/cloud/aws/beanstalk/monitors-beanstalk.tf @@ -16,7 +16,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false timeout_h = 0 include_tags = true diff --git a/cloud/aws/ecs/common/README.md b/cloud/aws/ecs/common/README.md index 29213b6..c451a50 100644 --- a/cloud/aws/ecs/common/README.md +++ b/cloud/aws/ecs/common/README.md @@ -32,6 +32,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | service\_cpu\_utilization\_enabled | Flag to enable Service CPU Utilization monitor | string | `"false"` | no | | service\_cpu\_utilization\_extra\_tags | Extra tags for Service CPU Utilization monitor | list(string) | `[]` | no | diff --git a/cloud/aws/ecs/common/inputs.tf b/cloud/aws/ecs/common/inputs.tf index 4e8aa67..226f12a 100644 --- a/cloud/aws/ecs/common/inputs.tf +++ b/cloud/aws/ecs/common/inputs.tf @@ -30,6 +30,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/cloud/aws/ecs/ec2-cluster/README.md b/cloud/aws/ecs/ec2-cluster/README.md index 26d423c..e10ff32 100644 --- a/cloud/aws/ecs/ec2-cluster/README.md +++ b/cloud/aws/ecs/ec2-cluster/README.md @@ -50,6 +50,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/aws/ecs/ec2-cluster/inputs.tf b/cloud/aws/ecs/ec2-cluster/inputs.tf index 96977a4..c9910f8 100644 --- a/cloud/aws/ecs/ec2-cluster/inputs.tf +++ b/cloud/aws/ecs/ec2-cluster/inputs.tf @@ -25,6 +25,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/cloud/aws/ecs/ec2-cluster/monitors-ecs-ec2-cluster.tf b/cloud/aws/ecs/ec2-cluster/monitors-ecs-ec2-cluster.tf index e75ab36..7b3a3ae 100644 --- a/cloud/aws/ecs/ec2-cluster/monitors-ecs-ec2-cluster.tf +++ b/cloud/aws/ecs/ec2-cluster/monitors-ecs-ec2-cluster.tf @@ -17,7 +17,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data no_data_timeframe = var.agent_status_no_data_timeframe require_full_window = false renotify_interval = 0 diff --git a/cloud/aws/elasticache/common/README.md b/cloud/aws/elasticache/common/README.md index c3cbceb..c801023 100644 --- a/cloud/aws/elasticache/common/README.md +++ b/cloud/aws/elasticache/common/README.md @@ -64,6 +64,7 @@ Creates DataDog monitors with the following checks: | no\_connection\_message | Custom message for Elasticache no connection monitor | string | `""` | no | | no\_connection\_time\_aggregator | Monitor aggregator for Elasticache no connection [available values: min, max or avg] | string | `"min"` | no | | no\_connection\_timeframe | Monitor timeframe for Elasticache no connection [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | swap\_enabled | Flag to enable Elasticache swap monitor | string | `"true"` | no | | swap\_extra\_tags | Extra tags for Elasticache swap monitor | list(string) | `[]` | no | diff --git a/cloud/aws/elasticache/common/inputs.tf b/cloud/aws/elasticache/common/inputs.tf index 6997bcf..f809f83 100644 --- a/cloud/aws/elasticache/common/inputs.tf +++ b/cloud/aws/elasticache/common/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/elasticache/common/monitors-elasticache.tf b/cloud/aws/elasticache/common/monitors-elasticache.tf index 4548387..1a6a37e 100644 --- a/cloud/aws/elasticache/common/monitors-elasticache.tf +++ b/cloud/aws/elasticache/common/monitors-elasticache.tf @@ -46,7 +46,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/aws/elasticache/memcached/README.md b/cloud/aws/elasticache/memcached/README.md index 9a4ca25..d8e5729 100644 --- a/cloud/aws/elasticache/memcached/README.md +++ b/cloud/aws/elasticache/memcached/README.md @@ -44,6 +44,7 @@ Creates DataDog monitors with the following checks: | get\_hits\_timeframe | Monitor timeframe for Elasticache memcached get hits [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_15m"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/aws/elasticache/memcached/inputs.tf b/cloud/aws/elasticache/memcached/inputs.tf index 25b63a4..3e9e770 100644 --- a/cloud/aws/elasticache/memcached/inputs.tf +++ b/cloud/aws/elasticache/memcached/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/elasticache/memcached/monitors-memcached.tf b/cloud/aws/elasticache/memcached/monitors-memcached.tf index e4dc790..e32c8c9 100644 --- a/cloud/aws/elasticache/memcached/monitors-memcached.tf +++ b/cloud/aws/elasticache/memcached/monitors-memcached.tf @@ -53,7 +53,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/aws/elasticache/redis/README.md b/cloud/aws/elasticache/redis/README.md index 3c9614f..00bdd37 100644 --- a/cloud/aws/elasticache/redis/README.md +++ b/cloud/aws/elasticache/redis/README.md @@ -50,6 +50,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | replication\_lag\_enabled | Flag to enable Elasticache redis replication lag monitor | string | `"true"` | no | | replication\_lag\_extra\_tags | Extra tags for Elasticache redis replication lag monitor | list(string) | `[]` | no | diff --git a/cloud/aws/elasticache/redis/inputs.tf b/cloud/aws/elasticache/redis/inputs.tf index ed61e74..a304c8a 100644 --- a/cloud/aws/elasticache/redis/inputs.tf +++ b/cloud/aws/elasticache/redis/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/elasticache/redis/monitors-redis.tf b/cloud/aws/elasticache/redis/monitors-redis.tf index c3c44b7..532d9d3 100644 --- a/cloud/aws/elasticache/redis/monitors-redis.tf +++ b/cloud/aws/elasticache/redis/monitors-redis.tf @@ -48,7 +48,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/aws/elasticsearch/README.md b/cloud/aws/elasticsearch/README.md index 07e4787..ac94753 100644 --- a/cloud/aws/elasticsearch/README.md +++ b/cloud/aws/elasticsearch/README.md @@ -52,6 +52,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/aws/elasticsearch/inputs.tf b/cloud/aws/elasticsearch/inputs.tf index 6533019..735ee66 100644 --- a/cloud/aws/elasticsearch/inputs.tf +++ b/cloud/aws/elasticsearch/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/elasticsearch/monitors-elasticsearch.tf b/cloud/aws/elasticsearch/monitors-elasticsearch.tf index 83701ad..6bc0604 100644 --- a/cloud/aws/elasticsearch/monitors-elasticsearch.tf +++ b/cloud/aws/elasticsearch/monitors-elasticsearch.tf @@ -23,7 +23,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/aws/elb/README.md b/cloud/aws/elb/README.md index 86b4374..2baffb7 100644 --- a/cloud/aws/elb/README.md +++ b/cloud/aws/elb/README.md @@ -72,6 +72,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/aws/elb/inputs.tf b/cloud/aws/elb/inputs.tf index 91efc47..6e5d087 100644 --- a/cloud/aws/elb/inputs.tf +++ b/cloud/aws/elb/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/elb/monitors-elb.tf b/cloud/aws/elb/monitors-elb.tf index a5e9075..12044e6 100644 --- a/cloud/aws/elb/monitors-elb.tf +++ b/cloud/aws/elb/monitors-elb.tf @@ -19,7 +19,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/aws/kinesis-firehose/README.md b/cloud/aws/kinesis-firehose/README.md index b858189..5c3a74b 100644 --- a/cloud/aws/kinesis-firehose/README.md +++ b/cloud/aws/kinesis-firehose/README.md @@ -33,6 +33,7 @@ Creates DataDog monitors with the following checks: | incoming\_records\_timeframe | Monitor timeframe for incoming records metrics evaluation [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_15m"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/aws/kinesis-firehose/inputs.tf b/cloud/aws/kinesis-firehose/inputs.tf index 5fbd2a3..8693bdc 100644 --- a/cloud/aws/kinesis-firehose/inputs.tf +++ b/cloud/aws/kinesis-firehose/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/kinesis-firehose/monitors-kinesis-firehose.tf b/cloud/aws/kinesis-firehose/monitors-kinesis-firehose.tf index 8ce1c41..d355012 100644 --- a/cloud/aws/kinesis-firehose/monitors-kinesis-firehose.tf +++ b/cloud/aws/kinesis-firehose/monitors-kinesis-firehose.tf @@ -17,7 +17,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/aws/lambda/README.md b/cloud/aws/lambda/README.md index 245c582..a813583 100644 --- a/cloud/aws/lambda/README.md +++ b/cloud/aws/lambda/README.md @@ -47,6 +47,7 @@ Creates DataDog monitors with the following checks: | invocations\_timeframe | Monitor timeframe for Invocations [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_30m"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | pct\_errors\_enabled | Flag to enable Percentage of errors monitor | string | `"true"` | no | | pct\_errors\_extra\_tags | Extra tags for Percentage of errors monitor | list(string) | `[]` | no | | pct\_errors\_message | Custom message for Percentage of errors monitor | string | `""` | no | diff --git a/cloud/aws/lambda/inputs.tf b/cloud/aws/lambda/inputs.tf index 20f0f1f..a8b9a24 100644 --- a/cloud/aws/lambda/inputs.tf +++ b/cloud/aws/lambda/inputs.tf @@ -39,6 +39,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Datadog monitors variables # Percentage of errors diff --git a/cloud/aws/nlb/README.md b/cloud/aws/nlb/README.md index b1206d2..bb43366 100644 --- a/cloud/aws/nlb/README.md +++ b/cloud/aws/nlb/README.md @@ -35,6 +35,7 @@ Creates DataDog monitors with the following checks: | nlb\_no\_healthy\_instances\_threshold\_warning | NLB no healthy instances warning threshold in percentage | string | `"100"` | no | | nlb\_no\_healthy\_instances\_time\_aggregator | Monitor aggregator for NLB no healthy instances [available values: min, max or avg] | string | `"min"` | no | | nlb\_no\_healthy\_instances\_timeframe | Monitor timeframe for NLB no healthy instances [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/aws/nlb/inputs.tf b/cloud/aws/nlb/inputs.tf index 03a4566..db18a07 100644 --- a/cloud/aws/nlb/inputs.tf +++ b/cloud/aws/nlb/inputs.tf @@ -39,6 +39,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Datadog monitors variables variable "nlb_no_healthy_instances_enabled" { diff --git a/cloud/aws/nlb/monitors-nlb.tf b/cloud/aws/nlb/monitors-nlb.tf index a6a2382..b04a304 100644 --- a/cloud/aws/nlb/monitors-nlb.tf +++ b/cloud/aws/nlb/monitors-nlb.tf @@ -19,7 +19,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 require_full_window = false timeout_h = 0 diff --git a/cloud/aws/rds/aurora/mysql/README.md b/cloud/aws/rds/aurora/mysql/README.md index 266dea4..6c6e016 100644 --- a/cloud/aws/rds/aurora/mysql/README.md +++ b/cloud/aws/rds/aurora/mysql/README.md @@ -36,6 +36,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/aws/rds/aurora/mysql/inputs.tf b/cloud/aws/rds/aurora/mysql/inputs.tf index 808704d..7be806b 100644 --- a/cloud/aws/rds/aurora/mysql/inputs.tf +++ b/cloud/aws/rds/aurora/mysql/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/rds/aurora/mysql/monitors-rds-aurora-mysql.tf b/cloud/aws/rds/aurora/mysql/monitors-rds-aurora-mysql.tf index bcdaf26..3561295 100644 --- a/cloud/aws/rds/aurora/mysql/monitors-rds-aurora-mysql.tf +++ b/cloud/aws/rds/aurora/mysql/monitors-rds-aurora-mysql.tf @@ -18,7 +18,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false timeout_h = 0 include_tags = true diff --git a/cloud/aws/rds/aurora/postgresql/README.md b/cloud/aws/rds/aurora/postgresql/README.md index 3aa8aa6..605a873 100644 --- a/cloud/aws/rds/aurora/postgresql/README.md +++ b/cloud/aws/rds/aurora/postgresql/README.md @@ -36,6 +36,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/aws/rds/aurora/postgresql/inputs.tf b/cloud/aws/rds/aurora/postgresql/inputs.tf index 808704d..7be806b 100644 --- a/cloud/aws/rds/aurora/postgresql/inputs.tf +++ b/cloud/aws/rds/aurora/postgresql/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/rds/aurora/postgresql/monitors-rds-aurora-postgresql.tf b/cloud/aws/rds/aurora/postgresql/monitors-rds-aurora-postgresql.tf index 57634e9..9b1729d 100644 --- a/cloud/aws/rds/aurora/postgresql/monitors-rds-aurora-postgresql.tf +++ b/cloud/aws/rds/aurora/postgresql/monitors-rds-aurora-postgresql.tf @@ -18,7 +18,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false timeout_h = 0 include_tags = true diff --git a/cloud/aws/rds/common/README.md b/cloud/aws/rds/common/README.md index 38dfe74..04cab01 100644 --- a/cloud/aws/rds/common/README.md +++ b/cloud/aws/rds/common/README.md @@ -45,6 +45,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | replicalag\_enabled | Flag to enable RDS replica lag monitor | string | `"true"` | no | | replicalag\_extra\_tags | Extra tags for RDS replica lag monitor | list(string) | `[]` | no | diff --git a/cloud/aws/rds/common/inputs.tf b/cloud/aws/rds/common/inputs.tf index de7c451..14e15b0 100644 --- a/cloud/aws/rds/common/inputs.tf +++ b/cloud/aws/rds/common/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/rds/common/monitors-rds-common.tf b/cloud/aws/rds/common/monitors-rds-common.tf index 88adb8a..93d3b13 100644 --- a/cloud/aws/rds/common/monitors-rds-common.tf +++ b/cloud/aws/rds/common/monitors-rds-common.tf @@ -53,7 +53,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false timeout_h = 0 include_tags = true diff --git a/cloud/aws/sqs/README.md b/cloud/aws/sqs/README.md index 499b09d..018f768 100644 --- a/cloud/aws/sqs/README.md +++ b/cloud/aws/sqs/README.md @@ -37,6 +37,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | visible\_messages\_enabled | Flag to enable Number of Visible Messages monitor | string | `"false"` | no | | visible\_messages\_extra\_tags | Extra tags for Number of Visible Messages monitor | list(string) | `[]` | no | diff --git a/cloud/aws/sqs/inputs.tf b/cloud/aws/sqs/inputs.tf index bd3559f..2f6acf6 100644 --- a/cloud/aws/sqs/inputs.tf +++ b/cloud/aws/sqs/inputs.tf @@ -39,6 +39,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Datadog monitors variables # Approximate Number of Visible Messages diff --git a/cloud/aws/vpn/README.md b/cloud/aws/vpn/README.md index 6499e62..45443c6 100644 --- a/cloud/aws/vpn/README.md +++ b/cloud/aws/vpn/README.md @@ -27,6 +27,7 @@ Creates DataDog monitors with the following checks: | filter\_tags | Tags used for metrics filtering | string | `"*"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | vpn\_status\_enabled | Flag to enable VPN status monitor | string | `"true"` | no | | vpn\_status\_extra\_tags | Extra tags for VPN status monitor | list(string) | `[]` | no | diff --git a/cloud/aws/vpn/inputs.tf b/cloud/aws/vpn/inputs.tf index b29e56c..9239685 100644 --- a/cloud/aws/vpn/inputs.tf +++ b/cloud/aws/vpn/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/aws/vpn/monitors-vpn.tf b/cloud/aws/vpn/monitors-vpn.tf index 6e48968..7027b16 100644 --- a/cloud/aws/vpn/monitors-vpn.tf +++ b/cloud/aws/vpn/monitors-vpn.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/apimanagement/README.md b/cloud/azure/apimanagement/README.md index 620ee59..bb4ea89 100644 --- a/cloud/azure/apimanagement/README.md +++ b/cloud/azure/apimanagement/README.md @@ -40,6 +40,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a Redis monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | other\_requests\_enabled | Flag to enable API Management other requests monitor | string | `"true"` | no | | other\_requests\_extra\_tags | Extra tags for API Management other requests monitor | list(string) | `[]` | no | | other\_requests\_message | Custom message for API Management other requests monitor | string | `""` | no | diff --git a/cloud/azure/apimanagement/inputs.tf b/cloud/azure/apimanagement/inputs.tf index 27a872b..e9cb69f 100644 --- a/cloud/azure/apimanagement/inputs.tf +++ b/cloud/azure/apimanagement/inputs.tf @@ -24,6 +24,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/cloud/azure/apimanagement/monitors-azure-apimanagement.tf b/cloud/azure/apimanagement/monitors-azure-apimanagement.tf index 9e5a6b5..6e37c04 100644 --- a/cloud/azure/apimanagement/monitors-azure-apimanagement.tf +++ b/cloud/azure/apimanagement/monitors-azure-apimanagement.tf @@ -14,7 +14,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/app-gateway/README.md b/cloud/azure/app-gateway/README.md index e22ced4..b63326f 100644 --- a/cloud/azure/app-gateway/README.md +++ b/cloud/azure/app-gateway/README.md @@ -91,6 +91,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | status\_enabled | Flag to enable App Gateway status | string | `"true"` | no | | status\_extra\_tags | Extra tags for App Gateway status | list(string) | `[]` | no | diff --git a/cloud/azure/app-gateway/inputs.tf b/cloud/azure/app-gateway/inputs.tf index 91d338e..cdbbd8f 100644 --- a/cloud/azure/app-gateway/inputs.tf +++ b/cloud/azure/app-gateway/inputs.tf @@ -38,6 +38,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Azure App Gateway specific variables # Monitoring App Gateway status variable "status_enabled" { diff --git a/cloud/azure/app-gateway/monitors-app-gateway.tf b/cloud/azure/app-gateway/monitors-app-gateway.tf index 48972ab..421ad78 100644 --- a/cloud/azure/app-gateway/monitors-app-gateway.tf +++ b/cloud/azure/app-gateway/monitors-app-gateway.tf @@ -13,7 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/app-services/README.md b/cloud/azure/app-services/README.md index 6d4b682..f31bed7 100644 --- a/cloud/azure/app-services/README.md +++ b/cloud/azure/app-services/README.md @@ -62,6 +62,7 @@ Creates DataDog monitors with the following checks: | memory\_usage\_timeframe | Monitor timeframe for App Services memory usage [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | response\_time\_enabled | Flag to enable App Services response time monitor | string | `"true"` | no | | response\_time\_extra\_tags | Extra tags for App Services response time monitor | list(string) | `[]` | no | diff --git a/cloud/azure/app-services/inputs.tf b/cloud/azure/app-services/inputs.tf index 324253e..8c8677a 100644 --- a/cloud/azure/app-services/inputs.tf +++ b/cloud/azure/app-services/inputs.tf @@ -37,6 +37,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Azure App Services specific variables variable "response_time_enabled" { diff --git a/cloud/azure/app-services/monitors-app_services.tf b/cloud/azure/app-services/monitors-app_services.tf index 85ef019..8b68f63 100644 --- a/cloud/azure/app-services/monitors-app_services.tf +++ b/cloud/azure/app-services/monitors-app_services.tf @@ -185,7 +185,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 require_full_window = false timeout_h = 0 diff --git a/cloud/azure/azure-search/README.md b/cloud/azure/azure-search/README.md index c4d5573..04bdcb8 100644 --- a/cloud/azure/azure-search/README.md +++ b/cloud/azure/azure-search/README.md @@ -37,6 +37,7 @@ Creates DataDog monitors with the following checks: | latency\_timeframe | Monitor timeframe for Azure Search latency [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | throttled\_queries\_rate\_enabled | Flag to enable Azure Search throttled queries rate monitor | string | `"true"` | no | | throttled\_queries\_rate\_extra\_tags | Extra tags for Azure Search throttled queries rate monitor | list(string) | `[]` | no | diff --git a/cloud/azure/azure-search/inputs.tf b/cloud/azure/azure-search/inputs.tf index 1237f43..32dd12b 100644 --- a/cloud/azure/azure-search/inputs.tf +++ b/cloud/azure/azure-search/inputs.tf @@ -37,6 +37,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Azure Search specific variables variable "latency_enabled" { diff --git a/cloud/azure/azure-search/monitors-azure-search.tf b/cloud/azure/azure-search/monitors-azure-search.tf index 2e4f2dc..b2fc3bb 100644 --- a/cloud/azure/azure-search/monitors-azure-search.tf +++ b/cloud/azure/azure-search/monitors-azure-search.tf @@ -18,7 +18,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 require_full_window = false timeout_h = 0 diff --git a/cloud/azure/cosmosdb/README.md b/cloud/azure/cosmosdb/README.md index 5df354e..1dbb166 100644 --- a/cloud/azure/cosmosdb/README.md +++ b/cloud/azure/cosmosdb/README.md @@ -53,6 +53,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | status\_enabled | Flag to enable Cosmos DB status monitor | string | `"true"` | no | | status\_extra\_tags | Extra tags for Cosmos DB status monitor | list(string) | `[]` | no | diff --git a/cloud/azure/cosmosdb/inputs.tf b/cloud/azure/cosmosdb/inputs.tf index 6c1c173..e8bba35 100644 --- a/cloud/azure/cosmosdb/inputs.tf +++ b/cloud/azure/cosmosdb/inputs.tf @@ -37,6 +37,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Azure CosmosDB specific variables variable "status_enabled" { description = "Flag to enable Cosmos DB status monitor" diff --git a/cloud/azure/cosmosdb/monitors-cosmosdb.tf b/cloud/azure/cosmosdb/monitors-cosmosdb.tf index 3338009..4a561ff 100644 --- a/cloud/azure/cosmosdb/monitors-cosmosdb.tf +++ b/cloud/azure/cosmosdb/monitors-cosmosdb.tf @@ -16,7 +16,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/datalakestore/README.md b/cloud/azure/datalakestore/README.md index e2de7aa..1de8843 100644 --- a/cloud/azure/datalakestore/README.md +++ b/cloud/azure/datalakestore/README.md @@ -29,6 +29,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | status\_enabled | Flag to enable Datalake Store status monitor | string | `"true"` | no | | status\_extra\_tags | Extra tags for Datalake Store status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | list(string) | `[]` | no | diff --git a/cloud/azure/datalakestore/inputs.tf b/cloud/azure/datalakestore/inputs.tf index 846e90d..093fc75 100644 --- a/cloud/azure/datalakestore/inputs.tf +++ b/cloud/azure/datalakestore/inputs.tf @@ -37,6 +37,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Azure Datalake Store specific variables variable "status_enabled" { description = "Flag to enable Datalake Store status monitor" diff --git a/cloud/azure/datalakestore/monitors-datalakestore.tf b/cloud/azure/datalakestore/monitors-datalakestore.tf index c0aa4ea..6a848c7 100644 --- a/cloud/azure/datalakestore/monitors-datalakestore.tf +++ b/cloud/azure/datalakestore/monitors-datalakestore.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/eventgrid/README.md b/cloud/azure/eventgrid/README.md index ba483c4..3eb9c48 100644 --- a/cloud/azure/eventgrid/README.md +++ b/cloud/azure/eventgrid/README.md @@ -43,6 +43,7 @@ Creates DataDog monitors with the following checks: | no\_successful\_message\_rate\_message | Custom message for Event Grid no successful message monitor | string | `""` | no | | no\_successful\_message\_rate\_time\_aggregator | Monitor aggregator for Event Grid no successful message [available values: min, max or avg] | string | `"min"` | no | | no\_successful\_message\_rate\_timeframe | Monitor timeframe for Event Grid no successful message [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | unmatched\_events\_rate\_enabled | Flag to enable Event Grid unmatched events monitor | string | `"true"` | no | | unmatched\_events\_rate\_extra\_tags | Extra tags for Event Grid unmatched events monitor | list(string) | `[]` | no | diff --git a/cloud/azure/eventgrid/inputs.tf b/cloud/azure/eventgrid/inputs.tf index 2d907d8..3a3be4e 100644 --- a/cloud/azure/eventgrid/inputs.tf +++ b/cloud/azure/eventgrid/inputs.tf @@ -24,6 +24,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/cloud/azure/eventgrid/monitors-eventgrid.tf b/cloud/azure/eventgrid/monitors-eventgrid.tf index b564643..ffa4897 100644 --- a/cloud/azure/eventgrid/monitors-eventgrid.tf +++ b/cloud/azure/eventgrid/monitors-eventgrid.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/eventhub/README.md b/cloud/azure/eventhub/README.md index 9873f61..c6002ad 100644 --- a/cloud/azure/eventhub/README.md +++ b/cloud/azure/eventhub/README.md @@ -45,6 +45,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | status\_enabled | Flag to enable Event Hub status monitor | string | `"true"` | no | | status\_extra\_tags | Extra tags for Event Hub status monitor | list(string) | `[]` | no | diff --git a/cloud/azure/eventhub/inputs.tf b/cloud/azure/eventhub/inputs.tf index a1bb291..4686837 100644 --- a/cloud/azure/eventhub/inputs.tf +++ b/cloud/azure/eventhub/inputs.tf @@ -24,6 +24,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/cloud/azure/eventhub/monitors-eventhub.tf b/cloud/azure/eventhub/monitors-eventhub.tf index 2579344..c0e7d48 100644 --- a/cloud/azure/eventhub/monitors-eventhub.tf +++ b/cloud/azure/eventhub/monitors-eventhub.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/functions/README.md b/cloud/azure/functions/README.md index 33884a0..e819c6e 100644 --- a/cloud/azure/functions/README.md +++ b/cloud/azure/functions/README.md @@ -52,6 +52,7 @@ Creates DataDog monitors with the following checks: | http\_5xx\_errors\_rate\_timeframe | Monitor timeframe for Functions Http 5xx errors rate [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/azure/functions/inputs.tf b/cloud/azure/functions/inputs.tf index b74679c..2b76cec 100644 --- a/cloud/azure/functions/inputs.tf +++ b/cloud/azure/functions/inputs.tf @@ -37,6 +37,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Azure Function App specific variables variable "http_5xx_errors_rate_enabled" { diff --git a/cloud/azure/iothubs/README.md b/cloud/azure/iothubs/README.md index e7d607a..599cbb1 100644 --- a/cloud/azure/iothubs/README.md +++ b/cloud/azure/iothubs/README.md @@ -112,6 +112,7 @@ Creates DataDog monitors with the following checks: | invalid\_d2c\_telemetry\_egress\_timeframe | Monitor timeframe for IoT Hub invalid d2c telemetry [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | orphaned\_d2c\_telemetry\_egress\_enabled | Flag to enable IoT Hub orphaned d2c telemetry monitor | string | `"true"` | no | | orphaned\_d2c\_telemetry\_egress\_extra\_tags | Extra tags for IoT Hub orphaned d2c telemetry monitor | list(string) | `[]` | no | | orphaned\_d2c\_telemetry\_egress\_message | Custom message for IoT Hub orphaned d2c telemetry monitor | string | `""` | no | diff --git a/cloud/azure/iothubs/inputs.tf b/cloud/azure/iothubs/inputs.tf index 5bff36d..a44b485 100644 --- a/cloud/azure/iothubs/inputs.tf +++ b/cloud/azure/iothubs/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/azure/iothubs/monitors-iothubs.tf b/cloud/azure/iothubs/monitors-iothubs.tf index 8321093..a0b5593 100644 --- a/cloud/azure/iothubs/monitors-iothubs.tf +++ b/cloud/azure/iothubs/monitors-iothubs.tf @@ -123,7 +123,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/keyvault/README.md b/cloud/azure/keyvault/README.md index 915be79..90b6fda 100644 --- a/cloud/azure/keyvault/README.md +++ b/cloud/azure/keyvault/README.md @@ -45,6 +45,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | status\_enabled | Flag to enable Key Vault status monitor | string | `"true"` | no | | status\_extra\_tags | Extra tags for Key Vault status monitor | list(string) | `[]` | no | diff --git a/cloud/azure/keyvault/inputs.tf b/cloud/azure/keyvault/inputs.tf index 15a0040..55e5843 100644 --- a/cloud/azure/keyvault/inputs.tf +++ b/cloud/azure/keyvault/inputs.tf @@ -37,6 +37,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Azure Key Vault specific variables variable "status_enabled" { description = "Flag to enable Key Vault status monitor" diff --git a/cloud/azure/keyvault/monitors-keyvault.tf b/cloud/azure/keyvault/monitors-keyvault.tf index 1181561..1ff9f22 100644 --- a/cloud/azure/keyvault/monitors-keyvault.tf +++ b/cloud/azure/keyvault/monitors-keyvault.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/load-balancer/README.md b/cloud/azure/load-balancer/README.md index 085817e..76f63d2 100644 --- a/cloud/azure/load-balancer/README.md +++ b/cloud/azure/load-balancer/README.md @@ -29,6 +29,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | status\_enabled | Flag to enable Load Balancer status monitor | string | `"true"` | no | | status\_extra\_tags | Extra tags for Load Balancer status monitor | list(string) | `[]` | no | diff --git a/cloud/azure/load-balancer/inputs.tf b/cloud/azure/load-balancer/inputs.tf index 9707a46..a5f0a10 100644 --- a/cloud/azure/load-balancer/inputs.tf +++ b/cloud/azure/load-balancer/inputs.tf @@ -37,6 +37,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # Azure Load Balancer specific variables variable "status_enabled" { description = "Flag to enable Load Balancer status monitor" diff --git a/cloud/azure/load-balancer/monitors-load-balancer.tf b/cloud/azure/load-balancer/monitors-load-balancer.tf index b35c955..207950d 100644 --- a/cloud/azure/load-balancer/monitors-load-balancer.tf +++ b/cloud/azure/load-balancer/monitors-load-balancer.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/mysql/README.md b/cloud/azure/mysql/README.md index c449eb3..0813ce2 100644 --- a/cloud/azure/mysql/README.md +++ b/cloud/azure/mysql/README.md @@ -59,6 +59,7 @@ Creates DataDog monitors with the following checks: | memory\_usage\_timeframe | Monitor timeframe for Mysql memory [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_15m"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/azure/mysql/inputs.tf b/cloud/azure/mysql/inputs.tf index c4def99..681cc49 100644 --- a/cloud/azure/mysql/inputs.tf +++ b/cloud/azure/mysql/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/azure/postgresql/README.md b/cloud/azure/postgresql/README.md index b5e28ac..079debd 100644 --- a/cloud/azure/postgresql/README.md +++ b/cloud/azure/postgresql/README.md @@ -65,6 +65,7 @@ Creates DataDog monitors with the following checks: | no\_connection\_message | Custom message for PostgreSQL no connection monitor | string | `""` | no | | no\_connection\_time\_aggregator | Monitor aggregator for PostgreSQL no connection [available values: min, max or avg] | string | `"min"` | no | | no\_connection\_timeframe | Monitor timeframe for PostgreSQL no connection [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/azure/postgresql/inputs.tf b/cloud/azure/postgresql/inputs.tf index 38f779a..41189e6 100644 --- a/cloud/azure/postgresql/inputs.tf +++ b/cloud/azure/postgresql/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/azure/postgresql/monitors-postegresql.tf b/cloud/azure/postgresql/monitors-postegresql.tf index 34b450f..d08ab38 100644 --- a/cloud/azure/postgresql/monitors-postegresql.tf +++ b/cloud/azure/postgresql/monitors-postegresql.tf @@ -46,7 +46,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/redis/README.md b/cloud/azure/redis/README.md index bc26fa0..98bb547 100644 --- a/cloud/azure/redis/README.md +++ b/cloud/azure/redis/README.md @@ -39,6 +39,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a Redis monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | percent\_processor\_time\_enabled | Flag to enable Redis processor monitor | string | `"true"` | no | | percent\_processor\_time\_extra\_tags | Extra tags for Redis processor monitor | list(string) | `[]` | no | | percent\_processor\_time\_message | Custom message for Redis processor monitor | string | `""` | no | diff --git a/cloud/azure/redis/inputs.tf b/cloud/azure/redis/inputs.tf index 0bb5758..15eefd0 100644 --- a/cloud/azure/redis/inputs.tf +++ b/cloud/azure/redis/inputs.tf @@ -24,6 +24,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/cloud/azure/redis/monitors-azure-redis.tf b/cloud/azure/redis/monitors-azure-redis.tf index 4d580a8..2f33e90 100644 --- a/cloud/azure/redis/monitors-azure-redis.tf +++ b/cloud/azure/redis/monitors-azure-redis.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/serverfarms/README.md b/cloud/azure/serverfarms/README.md index decc099..bbbf868 100644 --- a/cloud/azure/serverfarms/README.md +++ b/cloud/azure/serverfarms/README.md @@ -44,6 +44,7 @@ Creates DataDog monitors with the following checks: | memory\_percentage\_timeframe | Monitor timeframe for serverfarms memory_percentage [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | | message | Message sent when a serverfarms monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | status\_enabled | Flag to enable the serverfarms status monitor | string | `"true"` | no | | status\_extra\_tags | Extra tags for serverfarms status monitor | list(string) | `[]` | no | diff --git a/cloud/azure/serverfarms/inputs.tf b/cloud/azure/serverfarms/inputs.tf index 77e8e96..9db9907 100644 --- a/cloud/azure/serverfarms/inputs.tf +++ b/cloud/azure/serverfarms/inputs.tf @@ -24,6 +24,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/cloud/azure/serverfarms/monitors-azure-serverfarms.tf b/cloud/azure/serverfarms/monitors-azure-serverfarms.tf index cc989a9..8ef7105 100644 --- a/cloud/azure/serverfarms/monitors-azure-serverfarms.tf +++ b/cloud/azure/serverfarms/monitors-azure-serverfarms.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/servicebus/README.md b/cloud/azure/servicebus/README.md index c890408..2b8556a 100644 --- a/cloud/azure/servicebus/README.md +++ b/cloud/azure/servicebus/README.md @@ -37,6 +37,7 @@ Creates DataDog monitors with the following checks: | no\_active\_connections\_message | Custom message for Service Bus no active connections monitor | string | `""` | no | | no\_active\_connections\_time\_aggregator | Monitor aggregator for Service Bus no active connections [available values: min, max or avg] | string | `"max"` | no | | no\_active\_connections\_timeframe | Monitor timeframe for Service Bus no active connections [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | server\_errors\_enabled | Flag to enable Service Bus server errors monitor | string | `"true"` | no | | server\_errors\_extra\_tags | Extra tags for Service Bus server errors monitor | list(string) | `[]` | no | diff --git a/cloud/azure/servicebus/inputs.tf b/cloud/azure/servicebus/inputs.tf index 2f5202c..bf1f77e 100644 --- a/cloud/azure/servicebus/inputs.tf +++ b/cloud/azure/servicebus/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/azure/servicebus/monitors-service-bus.tf b/cloud/azure/servicebus/monitors-service-bus.tf index d4072b5..f991e78 100644 --- a/cloud/azure/servicebus/monitors-service-bus.tf +++ b/cloud/azure/servicebus/monitors-service-bus.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/sql-database/README.md b/cloud/azure/sql-database/README.md index 92d9fd3..404c815 100644 --- a/cloud/azure/sql-database/README.md +++ b/cloud/azure/sql-database/README.md @@ -59,6 +59,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | status\_enabled | Flag to enable Redis status monitor | string | `"true"` | no | | status\_extra\_tags | Extra tags for Redis status monitor | list(string) | `[]` | no | diff --git a/cloud/azure/sql-database/inputs.tf b/cloud/azure/sql-database/inputs.tf index 9a65ed0..763e291 100644 --- a/cloud/azure/sql-database/inputs.tf +++ b/cloud/azure/sql-database/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/azure/sql-database/monitors-sql-database.tf b/cloud/azure/sql-database/monitors-sql-database.tf index 37a790b..d379da7 100644 --- a/cloud/azure/sql-database/monitors-sql-database.tf +++ b/cloud/azure/sql-database/monitors-sql-database.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/sql-elasticpool/README.md b/cloud/azure/sql-elasticpool/README.md index 90ad319..1f1300d 100644 --- a/cloud/azure/sql-elasticpool/README.md +++ b/cloud/azure/sql-elasticpool/README.md @@ -52,6 +52,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/azure/sql-elasticpool/inputs.tf b/cloud/azure/sql-elasticpool/inputs.tf index b6fee13..cc7146b 100644 --- a/cloud/azure/sql-elasticpool/inputs.tf +++ b/cloud/azure/sql-elasticpool/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/cloud/azure/sql-elasticpool/monitors-sql-elasticpool.tf b/cloud/azure/sql-elasticpool/monitors-sql-elasticpool.tf index a563133..8e7abca 100644 --- a/cloud/azure/sql-elasticpool/monitors-sql-elasticpool.tf +++ b/cloud/azure/sql-elasticpool/monitors-sql-elasticpool.tf @@ -17,7 +17,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/storage/README.md b/cloud/azure/storage/README.md index 713f285..ccaaa61 100644 --- a/cloud/azure/storage/README.md +++ b/cloud/azure/storage/README.md @@ -101,6 +101,7 @@ Creates DataDog monitors with the following checks: | network\_error\_requests\_time\_aggregator | Monitor aggregator for Storage network errors [available values: min, max or avg] | string | `"min"` | no | | network\_error\_requests\_timeframe | Monitor timeframe for Storage network errors [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | server\_other\_error\_requests\_enabled | Flag to enable Storage server other errors monitor | string | `"true"` | no | | server\_other\_error\_requests\_extra\_tags | Extra tags for Storage server other errors monitor | list(string) | `[]` | no | diff --git a/cloud/azure/storage/inputs.tf b/cloud/azure/storage/inputs.tf index f95aee2..8a98920 100644 --- a/cloud/azure/storage/inputs.tf +++ b/cloud/azure/storage/inputs.tf @@ -24,6 +24,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/cloud/azure/storage/monitors-azure-storage.tf b/cloud/azure/storage/monitors-azure-storage.tf index cc1cc57..aec3bd3 100644 --- a/cloud/azure/storage/monitors-azure-storage.tf +++ b/cloud/azure/storage/monitors-azure-storage.tf @@ -14,7 +14,7 @@ EOQ silenced = var.status_silenced type = "metric alert" - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false timeout_h = 0 include_tags = true diff --git a/cloud/azure/stream-analytics/README.md b/cloud/azure/stream-analytics/README.md index c4e6421..807aec7 100644 --- a/cloud/azure/stream-analytics/README.md +++ b/cloud/azure/stream-analytics/README.md @@ -47,6 +47,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a Redis monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | runtime\_errors\_enabled | Flag to enable Stream Analytics runtime errors monitor | string | `"true"` | no | | runtime\_errors\_extra\_tags | Extra tags for Stream Analytics runtime errors monitor | list(string) | `[]` | no | diff --git a/cloud/azure/stream-analytics/inputs.tf b/cloud/azure/stream-analytics/inputs.tf index dbdf2d4..d457af3 100644 --- a/cloud/azure/stream-analytics/inputs.tf +++ b/cloud/azure/stream-analytics/inputs.tf @@ -24,6 +24,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/cloud/azure/stream-analytics/monitors-stream-analytics.tf b/cloud/azure/stream-analytics/monitors-stream-analytics.tf index 9c744d7..cbf2f35 100644 --- a/cloud/azure/stream-analytics/monitors-stream-analytics.tf +++ b/cloud/azure/stream-analytics/monitors-stream-analytics.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/virtual-machine/README.md b/cloud/azure/virtual-machine/README.md index fced387..5628f2c 100644 --- a/cloud/azure/virtual-machine/README.md +++ b/cloud/azure/virtual-machine/README.md @@ -55,6 +55,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when a Redis monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | ram\_reserved\_enabled | Flag to enable Virtual Machine RAM reserved monitor | string | `"true"` | no | | ram\_reserved\_extra\_tags | Extra tags for Virtual Machine RAM reserved monitor | list(string) | `[]` | no | diff --git a/cloud/azure/virtual-machine/inputs.tf b/cloud/azure/virtual-machine/inputs.tf index a73f493..48e6eb3 100644 --- a/cloud/azure/virtual-machine/inputs.tf +++ b/cloud/azure/virtual-machine/inputs.tf @@ -24,6 +24,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/cloud/azure/virtual-machine/monitors-virtual-machine.tf b/cloud/azure/virtual-machine/monitors-virtual-machine.tf index d99ccf3..e92c4cc 100644 --- a/cloud/azure/virtual-machine/monitors-virtual-machine.tf +++ b/cloud/azure/virtual-machine/monitors-virtual-machine.tf @@ -12,7 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/gcp/big-query/README.md b/cloud/gcp/big-query/README.md index 4d798c2..088bfad 100644 --- a/cloud/gcp/big-query/README.md +++ b/cloud/gcp/big-query/README.md @@ -53,6 +53,7 @@ Creates DataDog monitors with the following checks: | filter\_tags | Tags used for filtering | string | `"*"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds for the new host evaluation | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | scanned\_bytes\_billed\_enabled | Flag to enable GCP Big Query Scanned Bytes Billed monitor | string | `"true"` | no | | scanned\_bytes\_billed\_extra\_tags | Extra tags for GCP Big Query Scanned Bytes Billed monitor | list(string) | `[]` | no | diff --git a/cloud/gcp/big-query/inputs.tf b/cloud/gcp/big-query/inputs.tf index 162a7dd..71edb3c 100644 --- a/cloud/gcp/big-query/inputs.tf +++ b/cloud/gcp/big-query/inputs.tf @@ -31,6 +31,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # # Concurrent queries # diff --git a/cloud/gcp/cloud-sql/common/README.md b/cloud/gcp/cloud-sql/common/README.md index 773851c..54205c8 100644 --- a/cloud/gcp/cloud-sql/common/README.md +++ b/cloud/gcp/cloud-sql/common/README.md @@ -85,6 +85,7 @@ Creates DataDog monitors with the following checks: | memory\_utilization\_timeframe | Timeframe for the Memory Utilization monitor | string | `"last_5m"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds for the new host evaluation | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/gcp/cloud-sql/common/inputs.tf b/cloud/gcp/cloud-sql/common/inputs.tf index 9ee91df..fe8513a 100644 --- a/cloud/gcp/cloud-sql/common/inputs.tf +++ b/cloud/gcp/cloud-sql/common/inputs.tf @@ -30,6 +30,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # # CPU # diff --git a/cloud/gcp/cloud-sql/common/monitors-cloud-sql-common.tf b/cloud/gcp/cloud-sql/common/monitors-cloud-sql-common.tf index 6dd7b1c..57f244a 100644 --- a/cloud/gcp/cloud-sql/common/monitors-cloud-sql-common.tf +++ b/cloud/gcp/cloud-sql/common/monitors-cloud-sql-common.tf @@ -62,7 +62,7 @@ EOQ timeout_h = 0 include_tags = true require_full_window = false - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:cloud-sql", "team:claranet", "created-by:terraform"], var.disk_utilization_extra_tags) diff --git a/cloud/gcp/cloud-sql/mysql/README.md b/cloud/gcp/cloud-sql/mysql/README.md index 4298d82..71d8106 100644 --- a/cloud/gcp/cloud-sql/mysql/README.md +++ b/cloud/gcp/cloud-sql/mysql/README.md @@ -27,6 +27,7 @@ Creates DataDog monitors with the following checks: | filter\_tags | Tags used for filtering | string | `"*"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds for the new host evaluation | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | replication\_lag\_enabled | Flag to enable GCP Cloud SQL Replication Lag monitor | string | `"true"` | no | | replication\_lag\_extra\_tags | Extra tags for GCP Cloud SQL SQL Replication monitor | list(string) | `[]` | no | diff --git a/cloud/gcp/cloud-sql/mysql/inputs.tf b/cloud/gcp/cloud-sql/mysql/inputs.tf index 70d2a8c..5f75710 100644 --- a/cloud/gcp/cloud-sql/mysql/inputs.tf +++ b/cloud/gcp/cloud-sql/mysql/inputs.tf @@ -30,6 +30,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # # Replication Lag # diff --git a/cloud/gcp/cloud-sql/mysql/monitors-cloudsql-mysql.tf b/cloud/gcp/cloud-sql/mysql/monitors-cloudsql-mysql.tf index 169a478..bfa8326 100644 --- a/cloud/gcp/cloud-sql/mysql/monitors-cloudsql-mysql.tf +++ b/cloud/gcp/cloud-sql/mysql/monitors-cloudsql-mysql.tf @@ -25,7 +25,7 @@ EOQ timeout_h = 0 include_tags = true require_full_window = false - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:cloud-sql", "team:claranet", "created-by:terraform", "engine:mysql"], var.replication_lag_extra_tags) diff --git a/cloud/gcp/gce/instance/README.md b/cloud/gcp/gce/instance/README.md index 68da434..441125a 100644 --- a/cloud/gcp/gce/instance/README.md +++ b/cloud/gcp/gce/instance/README.md @@ -34,7 +34,6 @@ Creates DataDog monitors with the following checks: | disk\_throttled\_bps\_enabled | Flag to enable Disk Throttled Bps monitor | string | `"true"` | no | | disk\_throttled\_bps\_extra\_tags | Extra tags for Disk Throttled Bps monitor | list(string) | `[]` | no | | disk\_throttled\_bps\_message | Custom message for the Disk Throttled Bps monitor | string | `""` | no | -| disk\_throttled\_bps\_notify\_no\_data | Flag to enable notification for no data on Disk Throttled Bps monitor | string | `"false"` | no | | disk\_throttled\_bps\_threshold\_critical | Disk Throttled Bps in percentage (critical threshold) | string | `"50"` | no | | disk\_throttled\_bps\_threshold\_warning | Disk Throttled Bps in percentage (warning threshold) | string | `"30"` | no | | disk\_throttled\_bps\_time\_aggregator | Time aggregator for the Disk Throttled Bps monitor | string | `"min"` | no | @@ -42,7 +41,6 @@ Creates DataDog monitors with the following checks: | disk\_throttled\_ops\_enabled | Flag to enable Disk Throttled OPS monitor | string | `"true"` | no | | disk\_throttled\_ops\_extra\_tags | Extra tags for Disk Throttled OPS monitor | list(string) | `[]` | no | | disk\_throttled\_ops\_message | Custom message for the Disk Throttled OPS monitor | string | `""` | no | -| disk\_throttled\_ops\_notify\_no\_data | Flag to enable notification for no data on Disk Throttled OPS monitor | string | `"false"` | no | | disk\_throttled\_ops\_threshold\_critical | Disk Throttled OPS in percentage (critical threshold) | string | `"50"` | no | | disk\_throttled\_ops\_threshold\_warning | Disk Throttled OPS in percentage (warning threshold) | string | `"30"` | no | | disk\_throttled\_ops\_time\_aggregator | Time aggregator for the Disk Throttled OPS monitor | string | `"min"` | no | @@ -52,6 +50,7 @@ Creates DataDog monitors with the following checks: | filter\_tags | Tags used for filtering | string | `"*"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds for the new host evaluation | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/cloud/gcp/gce/instance/inputs.tf b/cloud/gcp/gce/instance/inputs.tf index 119a755..6cfa3f5 100644 --- a/cloud/gcp/gce/instance/inputs.tf +++ b/cloud/gcp/gce/instance/inputs.tf @@ -30,6 +30,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # # CPU # @@ -122,12 +127,6 @@ variable "disk_throttled_bps_extra_tags" { default = [] } -variable "disk_throttled_bps_notify_no_data" { - description = "Flag to enable notification for no data on Disk Throttled Bps monitor" - type = string - default = "false" -} - # # Disk Throttled OPS # @@ -174,9 +173,3 @@ variable "disk_throttled_ops_extra_tags" { default = [] } -variable "disk_throttled_ops_notify_no_data" { - description = "Flag to enable notification for no data on Disk Throttled OPS monitor" - type = string - default = "false" -} - diff --git a/cloud/gcp/gce/instance/monitors-gce-instance.tf b/cloud/gcp/gce/instance/monitors-gce-instance.tf index 434e1d2..6f77b35 100644 --- a/cloud/gcp/gce/instance/monitors-gce-instance.tf +++ b/cloud/gcp/gce/instance/monitors-gce-instance.tf @@ -25,7 +25,7 @@ EOQ timeout_h = 0 include_tags = true require_full_window = false - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:gce-instance", "team:claranet", "created-by:terraform"], var.cpu_utilization_extra_tags) @@ -68,7 +68,7 @@ EOQ timeout_h = 0 include_tags = true require_full_window = false - notify_no_data = var.disk_throttled_bps_notify_no_data + notify_no_data = false renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:gce-instance", "team:claranet", "created-by:terraform"], var.disk_throttled_bps_extra_tags) @@ -106,7 +106,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = var.disk_throttled_ops_notify_no_data + notify_no_data = false notify_audit = false locked = false timeout_h = 0 diff --git a/cloud/gcp/lb/README.md b/cloud/gcp/lb/README.md index d625e3f..6ecc083 100644 --- a/cloud/gcp/lb/README.md +++ b/cloud/gcp/lb/README.md @@ -61,6 +61,7 @@ Creates DataDog monitors with the following checks: | filter\_tags | Tags used for filtering | string | `"*"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds for the new host evaluation | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | request\_count\_enabled | Flag to enable GCP LB Request Count monitor | string | `"true"` | no | | request\_count\_extra\_tags | Extra tags for GCP LB Request Count monitor | list(string) | `[]` | no | diff --git a/cloud/gcp/lb/inputs.tf b/cloud/gcp/lb/inputs.tf index 072d32f..1009608 100644 --- a/cloud/gcp/lb/inputs.tf +++ b/cloud/gcp/lb/inputs.tf @@ -30,6 +30,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # # 4XX Errors # diff --git a/cloud/gcp/pubsub/subscription/README.md b/cloud/gcp/pubsub/subscription/README.md index 4d3c3de..c3d5d13 100644 --- a/cloud/gcp/pubsub/subscription/README.md +++ b/cloud/gcp/pubsub/subscription/README.md @@ -29,6 +29,7 @@ Creates DataDog monitors with the following checks: | filter\_tags | Tags used for filtering | string | `"*"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds for the new host evaluation | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | oldest\_unacked\_message\_age\_enabled | Flag to enable GCP Pub/Sub Subscription Oldest Unacked Message Age monitor | string | `"true"` | no | | oldest\_unacked\_message\_age\_extra\_tags | Extra tags for GCP Pub/Sub Subscription Oldest Unacked Message Age monitor | list(string) | `[]` | no | | oldest\_unacked\_message\_age\_message | Custom message for the GCP Pub/Sub Subscription Oldest Unacked Message Age monitor | string | `""` | no | diff --git a/cloud/gcp/pubsub/subscription/inputs.tf b/cloud/gcp/pubsub/subscription/inputs.tf index 7227a64..204a39c 100644 --- a/cloud/gcp/pubsub/subscription/inputs.tf +++ b/cloud/gcp/pubsub/subscription/inputs.tf @@ -30,6 +30,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # # oldest_unacked_message_age # diff --git a/cloud/gcp/pubsub/topic/README.md b/cloud/gcp/pubsub/topic/README.md index 23635f1..5a48275 100644 --- a/cloud/gcp/pubsub/topic/README.md +++ b/cloud/gcp/pubsub/topic/README.md @@ -29,6 +29,7 @@ Creates DataDog monitors with the following checks: | filter\_tags | Tags used for filtering | string | `"*"` | no | | message | Message sent when a monitor is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds for the new host evaluation | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | sending\_operations\_count\_enabled | Flag to enable GCP Pub/Sub Unavailable Sending Operations Count monitor | string | `"true"` | no | | sending\_operations\_count\_extra\_tags | Extra tags for GCP Pub/Sub Sending Operations Count monitor | list(string) | `[]` | no | diff --git a/cloud/gcp/pubsub/topic/inputs.tf b/cloud/gcp/pubsub/topic/inputs.tf index 11cf64e..d1b7e91 100644 --- a/cloud/gcp/pubsub/topic/inputs.tf +++ b/cloud/gcp/pubsub/topic/inputs.tf @@ -30,6 +30,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # # Sending Operations Count # diff --git a/database/elasticsearch/README.md b/database/elasticsearch/README.md index fc9d300..bb9367b 100644 --- a/database/elasticsearch/README.md +++ b/database/elasticsearch/README.md @@ -176,6 +176,7 @@ Creates DataDog monitors with the following checks: | not\_responding\_message | Custom message for Elasticsearch does not respond monitor | string | `""` | no | | not\_responding\_no\_data\_timeframe | Elasticsearch not responding monitor no data timeframe | string | `"10"` | no | | not\_responding\_threshold\_warning | Elasticsearch not responding limit (warning threshold) | string | `"3"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | query\_cache\_evictions\_change\_enabled | Flag to enable Cluster Status monitor | string | `"true"` | no | | query\_cache\_evictions\_change\_extra\_tags | Extra tags for Cluster Status monitor | list(string) | `[]` | no | diff --git a/database/elasticsearch/inputs.tf b/database/elasticsearch/inputs.tf index b06cc3f..dc19e6f 100644 --- a/database/elasticsearch/inputs.tf +++ b/database/elasticsearch/inputs.tf @@ -40,6 +40,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + # # Cluster Status Not Green # diff --git a/database/elasticsearch/monitors-elasticsearch.tf b/database/elasticsearch/monitors-elasticsearch.tf index a0275ad..c3be583 100644 --- a/database/elasticsearch/monitors-elasticsearch.tf +++ b/database/elasticsearch/monitors-elasticsearch.tf @@ -18,7 +18,7 @@ EOQ no_data_timeframe = var.not_responding_no_data_timeframe new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false locked = false timeout_h = 0 diff --git a/database/mongodb/README.md b/database/mongodb/README.md index 3b7caa4..932b2d1 100644 --- a/database/mongodb/README.md +++ b/database/mongodb/README.md @@ -54,6 +54,7 @@ Creates DataDog monitors with the following checks: | mongodb\_server\_count\_message | Custom message for MongoDB server count | string | `""` | no | | mongodb\_server\_count\_timeframe | Monitor timeframe for MongoDB wrong server count [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_15m"` | no | | new\_host\_delay | Delay in seconds before monitor new resource | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/database/mongodb/inputs.tf b/database/mongodb/inputs.tf index 521f3ef..1e27a6e 100644 --- a/database/mongodb/inputs.tf +++ b/database/mongodb/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/database/mongodb/monitors-mongo.tf b/database/mongodb/monitors-mongo.tf index 7ad0b78..c8100a6 100644 --- a/database/mongodb/monitors-mongo.tf +++ b/database/mongodb/monitors-mongo.tf @@ -11,7 +11,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/database/mysql/README.md b/database/mysql/README.md index 702bc17..54536a6 100644 --- a/database/mysql/README.md +++ b/database/mysql/README.md @@ -102,6 +102,7 @@ Creates DataDog monitors with the following checks: | mysql\_threads\_time\_aggregator | Monitor time aggregator for MySQL threads monitor [available values: min, max or avg] | string | `"avg"` | no | | mysql\_threads\_timeframe | Monitor timeframe for MySQL threads monitor [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_4h"` | no | | new\_host\_delay | Delay in seconds for the metric evaluation | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/database/mysql/inputs.tf b/database/mysql/inputs.tf index ee5344e..d091611 100644 --- a/database/mysql/inputs.tf +++ b/database/mysql/inputs.tf @@ -18,6 +18,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/database/mysql/monitors-mysql.tf b/database/mysql/monitors-mysql.tf index e3931be..23e1261 100644 --- a/database/mysql/monitors-mysql.tf +++ b/database/mysql/monitors-mysql.tf @@ -15,7 +15,7 @@ EOQ no_data_timeframe = var.mysql_availability_no_data_timeframe new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/database/postgresql/README.md b/database/postgresql/README.md index 0526e17..860277b 100644 --- a/database/postgresql/README.md +++ b/database/postgresql/README.md @@ -31,6 +31,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | message | Message sent when an alert is triggered | string | n/a | yes | | new\_host\_delay | Delay in seconds for the metric evaluation | string | `"300"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | postgresql\_availability\_enabled | Flag to enable PostgreSQL availability monitor | string | `"true"` | no | | postgresql\_availability\_extra\_tags | Extra tags for PostgreSQL availability monitor | list(string) | `[]` | no | | postgresql\_availability\_message | Custom message for PostgreSQL availability monitor | string | `""` | no | diff --git a/database/postgresql/inputs.tf b/database/postgresql/inputs.tf index b505161..1030a74 100644 --- a/database/postgresql/inputs.tf +++ b/database/postgresql/inputs.tf @@ -19,6 +19,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/database/postgresql/monitors-postgresql.tf b/database/postgresql/monitors-postgresql.tf index 3d111e6..dcc35ae 100644 --- a/database/postgresql/monitors-postgresql.tf +++ b/database/postgresql/monitors-postgresql.tf @@ -15,7 +15,7 @@ EOQ no_data_timeframe = var.postgresql_availability_no_data_timeframe new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/database/redis/README.md b/database/redis/README.md index 6f6998b..2b8ab4c 100644 --- a/database/redis/README.md +++ b/database/redis/README.md @@ -99,6 +99,7 @@ Creates DataDog monitors with the following checks: | not\_responding\_message | Custom message for Redis does not respond monitor | string | `""` | no | | not\_responding\_no\_data\_timeframe | Redis does not respond monitor no data timeframe | string | `"10"` | no | | not\_responding\_threshold\_warning | Redis does not respond monitor (warning threshold) | string | `"3"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | rejected\_con\_enabled | Flag to enable Redis rejected connections errors monitor | string | `"true"` | no | | rejected\_con\_extra\_tags | Extra tags for Redis rejected connections errors monitor | list(string) | `[]` | no | diff --git a/database/redis/inputs.tf b/database/redis/inputs.tf index 7ecc6d9..e8ac16b 100644 --- a/database/redis/inputs.tf +++ b/database/redis/inputs.tf @@ -24,6 +24,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "filter_tags_use_defaults" { description = "Use default filter tags convention" default = "true" diff --git a/database/redis/monitors-redis.tf b/database/redis/monitors-redis.tf index 30cdd38..98dd8c2 100644 --- a/database/redis/monitors-redis.tf +++ b/database/redis/monitors-redis.tf @@ -18,7 +18,7 @@ EOQ new_host_delay = var.new_host_delay no_data_timeframe = var.not_responding_no_data_timeframe - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false locked = false timeout_h = 0 diff --git a/middleware/apache/README.md b/middleware/apache/README.md index 435620d..9cb2930 100644 --- a/middleware/apache/README.md +++ b/middleware/apache/README.md @@ -33,6 +33,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/middleware/apache/inputs.tf b/middleware/apache/inputs.tf index c1ee3a5..3ca24c0 100644 --- a/middleware/apache/inputs.tf +++ b/middleware/apache/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/middleware/apache/monitors-apache.tf b/middleware/apache/monitors-apache.tf index 9c4289d..6099bed 100644 --- a/middleware/apache/monitors-apache.tf +++ b/middleware/apache/monitors-apache.tf @@ -14,7 +14,7 @@ EOQ } new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/middleware/kong/README.md b/middleware/kong/README.md index f7e4b23..70213ca 100644 --- a/middleware/kong/README.md +++ b/middleware/kong/README.md @@ -35,6 +35,7 @@ Creates DataDog monitors with the following checks: | not\_responding\_message | Custom message for Kong does not respond monitor | string | `""` | no | | not\_responding\_no\_data\_timeframe | Kong does not respond monitor no data timeframe | string | `"10"` | no | | not\_responding\_threshold\_warning | Warning threshold for the service check | string | `"3"` | no | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | treatment\_limit\_enabled | Flag to enable Kong Treatment Limit monitor | string | `"true"` | no | | treatment\_limit\_extra\_tags | Extra tags for Kong Treatment Limit monitor | list(string) | `[]` | no | diff --git a/middleware/kong/inputs.tf b/middleware/kong/inputs.tf index a36d026..06a3a02 100644 --- a/middleware/kong/inputs.tf +++ b/middleware/kong/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/middleware/kong/monitors-kong.tf b/middleware/kong/monitors-kong.tf index dbd6d5c..dde240d 100644 --- a/middleware/kong/monitors-kong.tf +++ b/middleware/kong/monitors-kong.tf @@ -18,7 +18,7 @@ EOQ new_host_delay = var.new_host_delay no_data_timeframe = var.not_responding_no_data_timeframe - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false locked = false timeout_h = 0 diff --git a/middleware/nginx/README.md b/middleware/nginx/README.md index 1691662..84d37cf 100644 --- a/middleware/nginx/README.md +++ b/middleware/nginx/README.md @@ -41,6 +41,7 @@ Creates DataDog monitors with the following checks: | nginx\_dropped\_threshold\_critical | Nginx dropped connections 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/middleware/nginx/inputs.tf b/middleware/nginx/inputs.tf index 54c3d8e..9565887 100644 --- a/middleware/nginx/inputs.tf +++ b/middleware/nginx/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/middleware/nginx/monitors-nginx.tf b/middleware/nginx/monitors-nginx.tf index 07a6fd1..3438f2b 100644 --- a/middleware/nginx/monitors-nginx.tf +++ b/middleware/nginx/monitors-nginx.tf @@ -15,7 +15,7 @@ EOQ no_data_timeframe = var.nginx_connect_no_data_timeframe new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/middleware/php-fpm/README.md b/middleware/php-fpm/README.md index d75cbd6..53b7031 100644 --- a/middleware/php-fpm/README.md +++ b/middleware/php-fpm/README.md @@ -30,6 +30,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | php\_fpm\_busy\_enabled | Flag to enable PHP FPM busy worker monitor | string | `"true"` | no | | php\_fpm\_busy\_extra\_tags | Extra tags for PHP FPM busy worker monitor | list(string) | `[]` | no | | php\_fpm\_busy\_message | Custom message for PHP FPM busy worker monitor | string | `""` | no | diff --git a/middleware/php-fpm/inputs.tf b/middleware/php-fpm/inputs.tf index 95ce388..a4e05bb 100644 --- a/middleware/php-fpm/inputs.tf +++ b/middleware/php-fpm/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/middleware/php-fpm/monitors-fpm.tf b/middleware/php-fpm/monitors-fpm.tf index 8d51a77..6398542 100644 --- a/middleware/php-fpm/monitors-fpm.tf +++ b/middleware/php-fpm/monitors-fpm.tf @@ -15,7 +15,7 @@ EOQ no_data_timeframe = var.php_fpm_connect_no_data_timeframe new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/network/dns/README.md b/network/dns/README.md index ac54b49..af7c3ad 100644 --- a/network/dns/README.md +++ b/network/dns/README.md @@ -34,6 +34,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/network/dns/inputs.tf b/network/dns/inputs.tf index 83e766f..c00e0f3 100644 --- a/network/dns/inputs.tf +++ b/network/dns/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/network/dns/monitors-dns.tf b/network/dns/monitors-dns.tf index c6dfa77..357dd0d 100644 --- a/network/dns/monitors-dns.tf +++ b/network/dns/monitors-dns.tf @@ -18,7 +18,7 @@ EOQ new_host_delay = var.new_host_delay no_data_timeframe = var.cannot_resolve_no_data_timeframe - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false locked = false timeout_h = 0 diff --git a/network/http/ssl/README.md b/network/http/ssl/README.md index bac8e3f..0950de2 100644 --- a/network/http/ssl/README.md +++ b/network/http/ssl/README.md @@ -42,6 +42,7 @@ Creates DataDog monitors with the following checks: | invalid\_ssl\_certificate\_threshold\_warning | SSL invalid certificate monitor (warning threshold) | string | `"3"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/network/http/ssl/inputs.tf b/network/http/ssl/inputs.tf index 16ab71e..5ce2426 100644 --- a/network/http/ssl/inputs.tf +++ b/network/http/ssl/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/network/http/ssl/monitors-ssl.tf b/network/http/ssl/monitors-ssl.tf index 2bc729d..c0bb4c5 100644 --- a/network/http/ssl/monitors-ssl.tf +++ b/network/http/ssl/monitors-ssl.tf @@ -18,7 +18,7 @@ EOQ new_host_delay = var.new_host_delay no_data_timeframe = var.invalid_ssl_certificate_no_data_timeframe - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false locked = false timeout_h = 0 diff --git a/network/http/webcheck/README.md b/network/http/webcheck/README.md index b9d8ebe..c15a28e 100644 --- a/network/http/webcheck/README.md +++ b/network/http/webcheck/README.md @@ -34,6 +34,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/network/http/webcheck/inputs.tf b/network/http/webcheck/inputs.tf index eb4a2c0..ad7564b 100644 --- a/network/http/webcheck/inputs.tf +++ b/network/http/webcheck/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/network/http/webcheck/monitors-webcheck.tf b/network/http/webcheck/monitors-webcheck.tf index 0069782..53f1a6c 100644 --- a/network/http/webcheck/monitors-webcheck.tf +++ b/network/http/webcheck/monitors-webcheck.tf @@ -18,7 +18,7 @@ EOQ new_host_delay = var.new_host_delay no_data_timeframe = var.cannot_connect_no_data_timeframe - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false locked = false timeout_h = 0 diff --git a/network/tls/README.md b/network/tls/README.md index 60d3c62..1bab2ad 100644 --- a/network/tls/README.md +++ b/network/tls/README.md @@ -48,6 +48,7 @@ Creates DataDog monitors with the following checks: | invalid\_tls\_certificate\_threshold\_warning | TLS certificate expiration monitor (warning threshold) | string | `"3"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | tls\_certificate\_expiration\_enabled | Flag to enable TLS certificate expiration monitor | string | `"true"` | no | | tls\_certificate\_expiration\_extra\_tags | Extra tags for TLS certificate expiration monitor | list(string) | `[]` | no | diff --git a/network/tls/inputs.tf b/network/tls/inputs.tf index 6d1cd93..cb0ecde 100644 --- a/network/tls/inputs.tf +++ b/network/tls/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/network/tls/monitors-tls.tf b/network/tls/monitors-tls.tf index 0856613..674f379 100644 --- a/network/tls/monitors-tls.tf +++ b/network/tls/monitors-tls.tf @@ -18,7 +18,7 @@ EOQ new_host_delay = var.new_host_delay no_data_timeframe = var.cannot_connect_no_data_timeframe - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false locked = false timeout_h = 0 diff --git a/saas/new-relic/README.md b/saas/new-relic/README.md index 8b5357e..41312f6 100644 --- a/saas/new-relic/README.md +++ b/saas/new-relic/README.md @@ -44,6 +44,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/saas/new-relic/inputs.tf b/saas/new-relic/inputs.tf index 377cfb0..473a4eb 100644 --- a/saas/new-relic/inputs.tf +++ b/saas/new-relic/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/scripts b/scripts index a46e894..b067114 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit a46e894352f03fb70ea2ccb5a54703a6a49839e6 +Subproject commit b067114343db19ef9093b4d939ac4023af8dfa13 diff --git a/system/generic/README.md b/system/generic/README.md index 8b29e70..72a2011 100644 --- a/system/generic/README.md +++ b/system/generic/README.md @@ -84,6 +84,7 @@ Creates DataDog monitors with the following checks: | memory\_timeframe | Monitor timeframe for Free memory [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | ## Outputs diff --git a/system/generic/inputs.tf b/system/generic/inputs.tf index 9c3c5da..538fc75 100644 --- a/system/generic/inputs.tf +++ b/system/generic/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/system/unreachable/README.md b/system/unreachable/README.md index 766cd58..f2c64c0 100644 --- a/system/unreachable/README.md +++ b/system/unreachable/README.md @@ -29,6 +29,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | 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 | +| notify\_no\_data | Will raise no data alert if set to true | string | `"true"` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | string | `""` | no | | unreachable\_enabled | Flag to enable Host unreachable monitor | string | `"true"` | no | | unreachable\_extra\_tags | Extra tags for Host unreachable monitor | list(string) | `[]` | no | diff --git a/system/unreachable/inputs.tf b/system/unreachable/inputs.tf index 1843ced..d0388dc 100644 --- a/system/unreachable/inputs.tf +++ b/system/unreachable/inputs.tf @@ -20,6 +20,11 @@ variable "prefix_slug" { default = "" } +variable "notify_no_data" { + description = "Will raise no data alert if set to true" + default = true +} + variable "message" { description = "Message sent when an alert is triggered" } diff --git a/system/unreachable/monitors-unreachable.tf b/system/unreachable/monitors-unreachable.tf index c5b5375..b9bb232 100644 --- a/system/unreachable/monitors-unreachable.tf +++ b/system/unreachable/monitors-unreachable.tf @@ -16,7 +16,7 @@ EOQ no_data_timeframe = var.unreachable_no_data_timeframe new_host_delay = var.new_host_delay - notify_no_data = true + notify_no_data = var.notify_no_data notify_audit = false timeout_h = 0 include_tags = true