diff --git a/caas/kubernetes/ark/README.md b/caas/kubernetes/ark/README.md index b2995f4..4ee4948 100644 --- a/caas/kubernetes/ark/README.md +++ b/caas/kubernetes/ark/README.md @@ -26,7 +26,7 @@ Creates DataDog monitors with the following checks: | ark\_schedules\_enabled | Flag to enable Ark schedules monitor | `string` | `"true"` | no | | ark\_schedules\_extra\_tags | Extra tags for Ark schedules monitor | `list(string)` | `[]` | no | | ark\_schedules\_monitor\_message | Custom message for Ark schedules monitor | `string` | `""` | no | -| ark\_schedules\_monitor\_no\_data\_timeframe | No data timeframe in minutes | `number` | `1440` | no | +| ark\_schedules\_monitor\_no\_data\_timeframe | No data timeframe in minutes | `number` | `2880` | no | | ark\_schedules\_monitor\_timeframe | Monitor timeframe for Ark schedules monitor [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_1d"` | no | | environment | Architecture environment | `any` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `15` | no | diff --git a/caas/kubernetes/ark/inputs.tf b/caas/kubernetes/ark/inputs.tf index 0601d8c..50f3560 100644 --- a/caas/kubernetes/ark/inputs.tf +++ b/caas/kubernetes/ark/inputs.tf @@ -71,6 +71,6 @@ variable "ark_schedules_extra_tags" { variable "ark_schedules_monitor_no_data_timeframe" { description = "No data timeframe in minutes" - default = 1440 + default = 2880 } diff --git a/caas/kubernetes/cluster/README.md b/caas/kubernetes/cluster/README.md index a583257..848b093 100644 --- a/caas/kubernetes/cluster/README.md +++ b/caas/kubernetes/cluster/README.md @@ -26,6 +26,7 @@ Creates DataDog monitors with the following checks: | apiserver\_enabled | Flag to enable API server monitor | `string` | `"true"` | no | | apiserver\_extra\_tags | Extra tags for API server monitor | `list(string)` | `[]` | no | | apiserver\_message | Custom message for API server monitor | `string` | `""` | no | +| apiserver\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | apiserver\_threshold\_warning | API server monitor (warning threshold) | `string` | `3` | no | | environment | Architecture environment | `any` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `15` | no | diff --git a/caas/kubernetes/cluster/inputs.tf b/caas/kubernetes/cluster/inputs.tf index 2b6afb2..248b1f9 100644 --- a/caas/kubernetes/cluster/inputs.tf +++ b/caas/kubernetes/cluster/inputs.tf @@ -43,6 +43,12 @@ variable "notify_no_data" { default = true } +variable "apiserver_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 29d4142..22e5d25 100644 --- a/caas/kubernetes/cluster/monitors-k8s-cluster.tf +++ b/caas/kubernetes/cluster/monitors-k8s-cluster.tf @@ -16,6 +16,7 @@ EOQ new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.apiserver_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/caas/kubernetes/node/README.md b/caas/kubernetes/node/README.md index 5f00602..a8524d2 100644 --- a/caas/kubernetes/node/README.md +++ b/caas/kubernetes/node/README.md @@ -48,6 +48,7 @@ Creates DataDog monitors with the following checks: | kubelet\_ping\_enabled | Flag to enable Kubelet ping monitor | `string` | `"true"` | no | | kubelet\_ping\_extra\_tags | Extra tags for Kubelet ping monitor | `list(string)` | `[]` | no | | kubelet\_ping\_message | Custom message for Kubelet ping monitor | `string` | `""` | no | +| kubelet\_ping\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | kubelet\_ping\_threshold\_warning | Kubelet ping monitor (warning threshold) | `string` | `3` | no | | kubelet\_syncloop\_enabled | Flag to enable Kubelet sync loop monitor | `string` | `"true"` | no | | kubelet\_syncloop\_extra\_tags | Extra tags for Kubelet sync loop monitor | `list(string)` | `[]` | no | diff --git a/caas/kubernetes/node/inputs.tf b/caas/kubernetes/node/inputs.tf index 1514ae2..f45bd96 100644 --- a/caas/kubernetes/node/inputs.tf +++ b/caas/kubernetes/node/inputs.tf @@ -43,6 +43,12 @@ variable "notify_no_data" { default = true } +variable "kubelet_ping_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 f9712b0..ccd754d 100644 --- a/caas/kubernetes/node/monitors-k8s-node.tf +++ b/caas/kubernetes/node/monitors-k8s-node.tf @@ -139,6 +139,7 @@ EOQ new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.kubelet_ping_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/aws/alb/README.md b/cloud/aws/alb/README.md index bc9c60b..2a2a9b5 100644 --- a/cloud/aws/alb/README.md +++ b/cloud/aws/alb/README.md @@ -31,6 +31,7 @@ Creates DataDog monitors with the following checks: | alb\_no\_healthy\_instances\_enabled | Flag to enable ALB no healthy instances monitor | `string` | `"true"` | no | | alb\_no\_healthy\_instances\_extra\_tags | Extra tags for ALB no healthy instances monitor | `list(string)` | `[]` | no | | alb\_no\_healthy\_instances\_message | Custom message for ALB no healthy instances monitor | `string` | `""` | no | +| alb\_no\_healthy\_instances\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | alb\_no\_healthy\_instances\_threshold\_warning | ALB no healthy instances warning threshold in percentage | `number` | `100` | no | | alb\_no\_healthy\_instances\_time\_aggregator | Monitor aggregator for ALB no healthy instances [available values: min, max or avg] | `string` | `"min"` | no | | alb\_no\_healthy\_instances\_timeframe | Monitor timeframe for ALB 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 | diff --git a/cloud/aws/alb/inputs.tf b/cloud/aws/alb/inputs.tf index c886442..e175bef 100644 --- a/cloud/aws/alb/inputs.tf +++ b/cloud/aws/alb/inputs.tf @@ -44,6 +44,12 @@ variable "notify_no_data" { default = true } +variable "alb_no_healthy_instances_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 d17f1c9..51a91a6 100644 --- a/cloud/aws/alb/monitors-alb.tf +++ b/cloud/aws/alb/monitors-alb.tf @@ -20,6 +20,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.alb_no_healthy_instances_no_data_timeframe renotify_interval = 0 require_full_window = false timeout_h = 0 diff --git a/cloud/aws/beanstalk/README.md b/cloud/aws/beanstalk/README.md index f1cbc6c..86a879f 100644 --- a/cloud/aws/beanstalk/README.md +++ b/cloud/aws/beanstalk/README.md @@ -48,6 +48,7 @@ Creates DataDog monitors with the following checks: | health\_enabled | Flag to enable Beanstalk Health monitor | `string` | `"true"` | no | | health\_extra\_tags | Extra tags for health monitor | `list(string)` | `[]` | no | | health\_message | Custom message for health monitor | `string` | `""` | no | +| health\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `20` | no | | health\_threshold\_critical | Health critical threshold (see the `aws.elasticbeanstalk.environment_health` values in the Datadog documentation) | `number` | `20` | no | | health\_threshold\_warning | Health critical threshold (see the `aws.elasticbeanstalk.environment_health` values in the Datadog documentation) | `number` | `15` | no | | health\_time\_aggregator | Monitor aggregator for beanstalk health [available values: min, max or avg] | `string` | `"min"` | no | diff --git a/cloud/aws/beanstalk/inputs.tf b/cloud/aws/beanstalk/inputs.tf index bf1f881..fbdf773 100644 --- a/cloud/aws/beanstalk/inputs.tf +++ b/cloud/aws/beanstalk/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "health_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 20 +} + 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 4492bac..f576ddb 100644 --- a/cloud/aws/beanstalk/monitors-beanstalk.tf +++ b/cloud/aws/beanstalk/monitors-beanstalk.tf @@ -17,6 +17,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.health_no_data_timeframe notify_audit = false timeout_h = 0 include_tags = true diff --git a/cloud/aws/elasticache/common/README.md b/cloud/aws/elasticache/common/README.md index 2fdaded..9d6605d 100644 --- a/cloud/aws/elasticache/common/README.md +++ b/cloud/aws/elasticache/common/README.md @@ -28,6 +28,7 @@ Creates DataDog monitors with the following checks: | Name | Description | Type | Default | Required | |------|-------------|------|---------|:-----:| +| elasticache\_max\_connection\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | environment | Infrastructure Environment | `string` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `900` | no | | eviction\_enabled | Flag to enable Elasticache eviction monitor | `string` | `"true"` | no | diff --git a/cloud/aws/elasticache/common/inputs.tf b/cloud/aws/elasticache/common/inputs.tf index f809f83..75e9f5c 100644 --- a/cloud/aws/elasticache/common/inputs.tf +++ b/cloud/aws/elasticache/common/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "elasticache_max_connection_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 1a6a37e..1925a36 100644 --- a/cloud/aws/elasticache/common/monitors-elasticache.tf +++ b/cloud/aws/elasticache/common/monitors-elasticache.tf @@ -47,6 +47,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.elasticache_max_connection_no_data_timeframe 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 5ddba43..99fede4 100644 --- a/cloud/aws/elasticache/memcached/README.md +++ b/cloud/aws/elasticache/memcached/README.md @@ -43,6 +43,7 @@ Creates DataDog monitors with the following checks: | get\_hits\_threshold\_warning | Elasticache memcached get hits warning threshold in percentage | `string` | `80` | no | | get\_hits\_time\_aggregator | Monitor aggregator for Elasticache memcached get hits [available values: min, max or avg] | `string` | `"max"` | no | | 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 | +| memcached\_cpu\_high\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `30` | no | | message | Message sent when an alert is triggered | `any` | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | `number` | `300` | no | | notify\_no\_data | Will raise no data alert if set to true | `bool` | `true` | no | diff --git a/cloud/aws/elasticache/memcached/inputs.tf b/cloud/aws/elasticache/memcached/inputs.tf index 3e9e770..d7ba1c9 100644 --- a/cloud/aws/elasticache/memcached/inputs.tf +++ b/cloud/aws/elasticache/memcached/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "memcached_cpu_high_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 30 +} + 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 e32c8c9..dd2052e 100644 --- a/cloud/aws/elasticache/memcached/monitors-memcached.tf +++ b/cloud/aws/elasticache/memcached/monitors-memcached.tf @@ -54,6 +54,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.memcached_cpu_high_no_data_timeframe 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 bac4dd9..98b9c24 100644 --- a/cloud/aws/elasticache/redis/README.md +++ b/cloud/aws/elasticache/redis/README.md @@ -53,6 +53,7 @@ Creates DataDog monitors with the following checks: | new\_host\_delay | Delay in seconds before monitor new resource | `number` | `300` | no | | notify\_no\_data | Will raise no data alert if set to true | `bool` | `true` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | `string` | `""` | no | +| redis\_cpu\_high\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `30` | 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 | | replication\_lag\_message | Custom message for Elasticache redis replication lag monitor | `string` | `""` | no | diff --git a/cloud/aws/elasticache/redis/inputs.tf b/cloud/aws/elasticache/redis/inputs.tf index a304c8a..7e391cf 100644 --- a/cloud/aws/elasticache/redis/inputs.tf +++ b/cloud/aws/elasticache/redis/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "redis_cpu_high_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 30 +} + 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 532d9d3..18d862a 100644 --- a/cloud/aws/elasticache/redis/monitors-redis.tf +++ b/cloud/aws/elasticache/redis/monitors-redis.tf @@ -49,6 +49,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.redis_cpu_high_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/aws/elasticsearch/README.md b/cloud/aws/elasticsearch/README.md index 12d652f..f4ae2a3 100644 --- a/cloud/aws/elasticsearch/README.md +++ b/cloud/aws/elasticsearch/README.md @@ -45,6 +45,7 @@ Creates DataDog monitors with the following checks: | es\_cluster\_status\_enabled | Flag to enable ES cluster status monitor | `string` | `"true"` | no | | es\_cluster\_status\_extra\_tags | Extra tags for ES cluster status monitor | `list(string)` | `[]` | no | | es\_cluster\_status\_message | Custom message for ES cluster status monitor | `string` | `""` | no | +| es\_cluster\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `60` | no | | es\_cluster\_status\_timeframe | Monitor timeframe for ES cluster status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_30m"` | no | | es\_cluster\_volume\_size | ElasticSearch Domain volume size (in GB) | `any` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `900` | no | diff --git a/cloud/aws/elasticsearch/inputs.tf b/cloud/aws/elasticsearch/inputs.tf index 735ee66..8fa1648 100644 --- a/cloud/aws/elasticsearch/inputs.tf +++ b/cloud/aws/elasticsearch/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "es_cluster_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 60 +} + 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 6bc0604..e083a47 100644 --- a/cloud/aws/elasticsearch/monitors-elasticsearch.tf +++ b/cloud/aws/elasticsearch/monitors-elasticsearch.tf @@ -24,6 +24,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.es_cluster_status_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/aws/elb/README.md b/cloud/aws/elb/README.md index 1707d27..8027e86 100644 --- a/cloud/aws/elb/README.md +++ b/cloud/aws/elb/README.md @@ -63,6 +63,7 @@ Creates DataDog monitors with the following checks: | elb\_no\_healthy\_instance\_enabled | Flag to enable ELB no healty instance monitor | `string` | `"true"` | no | | elb\_no\_healthy\_instance\_extra\_tags | Extra tags for ELB no healty instance monitor | `list(string)` | `[]` | no | | elb\_no\_healthy\_instance\_message | Custom message for ELB no healty instance monitor | `string` | `""` | no | +| elb\_no\_healthy\_instance\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | elb\_no\_healthy\_instance\_threshold\_warning | ELB no healthy instances warning threshold in percentage | `number` | `100` | no | | elb\_no\_healthy\_instance\_time\_aggregator | Monitor aggregator for ELB no healty instance [available values: min or max] | `string` | `"min"` | no | | elb\_no\_healthy\_instance\_timeframe | Monitor timeframe for ELB no healty instance [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | diff --git a/cloud/aws/elb/inputs.tf b/cloud/aws/elb/inputs.tf index 6e5d087..ce8c827 100644 --- a/cloud/aws/elb/inputs.tf +++ b/cloud/aws/elb/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "elb_no_healthy_instance_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 12044e6..38bd37a 100644 --- a/cloud/aws/elb/monitors-elb.tf +++ b/cloud/aws/elb/monitors-elb.tf @@ -20,6 +20,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.elb_no_healthy_instance_no_data_timeframe 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 f008115..16adb8e 100644 --- a/cloud/aws/kinesis-firehose/README.md +++ b/cloud/aws/kinesis-firehose/README.md @@ -28,6 +28,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_custom | Tags used for custom filtering when filter\_tags\_use\_defaults is false | `string` | `"*"` | no | | filter\_tags\_custom\_excluded | Tags excluded for custom filtering when filter\_tags\_use\_defaults is false | `string` | `""` | no | | filter\_tags\_use\_defaults | Use default filter tags convention | `string` | `"true"` | no | +| firehose\_incoming\_records\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `30` | no | | incoming\_records\_enabled | Flag to enable Kinesis Firehorse incoming records monitor | `string` | `"true"` | no | | incoming\_records\_extra\_tags | Extra tags for Kinesis Firehorse incoming records monitor | `list(string)` | `[]` | no | | incoming\_records\_message | Custom message for Kinesis Firehorse incoming records monitor | `string` | `""` | no | diff --git a/cloud/aws/kinesis-firehose/inputs.tf b/cloud/aws/kinesis-firehose/inputs.tf index 8693bdc..df1bc09 100644 --- a/cloud/aws/kinesis-firehose/inputs.tf +++ b/cloud/aws/kinesis-firehose/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "firehose_incoming_records_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 30 +} + 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 d355012..c347066 100644 --- a/cloud/aws/kinesis-firehose/monitors-kinesis-firehose.tf +++ b/cloud/aws/kinesis-firehose/monitors-kinesis-firehose.tf @@ -18,6 +18,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.firehose_incoming_records_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/aws/lambda/monitors-lambda.tf b/cloud/aws/lambda/monitors-lambda.tf index e3d6204..0312122 100644 --- a/cloud/aws/lambda/monitors-lambda.tf +++ b/cloud/aws/lambda/monitors-lambda.tf @@ -131,7 +131,8 @@ resource "datadog_monitor" "invocations" { warning = var.invocations_threshold_warning } - notify_no_data = false + notify_no_data = var.notify_no_data + no_data_timeframe = var.invocations_no_data_timeframe require_full_window = false renotify_interval = 0 notify_audit = false diff --git a/cloud/aws/nlb/README.md b/cloud/aws/nlb/README.md index ed4dcd2..5db7216 100644 --- a/cloud/aws/nlb/README.md +++ b/cloud/aws/nlb/README.md @@ -33,6 +33,7 @@ Creates DataDog monitors with the following checks: | nlb\_no\_healthy\_instances\_enabled | Flag to enable NLB no healthy instances monitor | `string` | `"true"` | no | | nlb\_no\_healthy\_instances\_extra\_tags | Extra tags for NLB no healthy instances monitor | `list(string)` | `[]` | no | | nlb\_no\_healthy\_instances\_message | Custom message for NLB no healthy instances monitor | `string` | `""` | no | +| nlb\_no\_healthy\_instances\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | nlb\_no\_healthy\_instances\_threshold\_warning | NLB no healthy instances warning threshold in percentage | `number` | `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 | diff --git a/cloud/aws/nlb/inputs.tf b/cloud/aws/nlb/inputs.tf index db18a07..3c93503 100644 --- a/cloud/aws/nlb/inputs.tf +++ b/cloud/aws/nlb/inputs.tf @@ -44,6 +44,12 @@ variable "notify_no_data" { default = true } +variable "nlb_no_healthy_instances_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 b04a304..7492b51 100644 --- a/cloud/aws/nlb/monitors-nlb.tf +++ b/cloud/aws/nlb/monitors-nlb.tf @@ -20,6 +20,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.nlb_no_healthy_instances_no_data_timeframe 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 751aa79..8a29b8b 100644 --- a/cloud/aws/rds/aurora/mysql/README.md +++ b/cloud/aws/rds/aurora/mysql/README.md @@ -39,6 +39,7 @@ Creates DataDog monitors with the following checks: | new\_host\_delay | Delay in seconds before monitor new resource | `number` | `300` | no | | notify\_no\_data | Will raise no data alert if set to true | `bool` | `true` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | `string` | `""` | no | +| rds\_aurora\_mysql\_replica\_lag\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | ## Outputs diff --git a/cloud/aws/rds/aurora/mysql/inputs.tf b/cloud/aws/rds/aurora/mysql/inputs.tf index 7be806b..3425832 100644 --- a/cloud/aws/rds/aurora/mysql/inputs.tf +++ b/cloud/aws/rds/aurora/mysql/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "rds_aurora_mysql_replica_lag_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 3561295..92fbed8 100644 --- a/cloud/aws/rds/aurora/mysql/monitors-rds-aurora-mysql.tf +++ b/cloud/aws/rds/aurora/mysql/monitors-rds-aurora-mysql.tf @@ -19,6 +19,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.rds_aurora_mysql_replica_lag_no_data_timeframe 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 4cf04c8..e9ccc08 100644 --- a/cloud/aws/rds/aurora/postgresql/README.md +++ b/cloud/aws/rds/aurora/postgresql/README.md @@ -39,6 +39,7 @@ Creates DataDog monitors with the following checks: | new\_host\_delay | Delay in seconds before monitor new resource | `number` | `300` | no | | notify\_no\_data | Will raise no data alert if set to true | `bool` | `true` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | `string` | `""` | no | +| rds\_aurora\_postgresql\_replica\_lag\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | ## Outputs diff --git a/cloud/aws/rds/aurora/postgresql/inputs.tf b/cloud/aws/rds/aurora/postgresql/inputs.tf index 7be806b..991a67d 100644 --- a/cloud/aws/rds/aurora/postgresql/inputs.tf +++ b/cloud/aws/rds/aurora/postgresql/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "rds_aurora_postgresql_replica_lag_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 9b1729d..e47ee1a 100644 --- a/cloud/aws/rds/aurora/postgresql/monitors-rds-aurora-postgresql.tf +++ b/cloud/aws/rds/aurora/postgresql/monitors-rds-aurora-postgresql.tf @@ -19,6 +19,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.rds_aurora_postgresql_replica_lag_no_data_timeframe 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 609e2df..eb7ff58 100644 --- a/cloud/aws/rds/common/README.md +++ b/cloud/aws/rds/common/README.md @@ -48,6 +48,7 @@ Creates DataDog monitors with the following checks: | new\_host\_delay | Delay in seconds before monitor new resource | `number` | `300` | no | | notify\_no\_data | Will raise no data alert if set to true | `bool` | `true` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | `string` | `""` | no | +| rds\_free\_space\_low\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `30` | 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 | | replicalag\_message | Custom message for RDS replica lag monitor | `string` | `""` | no | diff --git a/cloud/aws/rds/common/inputs.tf b/cloud/aws/rds/common/inputs.tf index 14e15b0..634d5d9 100644 --- a/cloud/aws/rds/common/inputs.tf +++ b/cloud/aws/rds/common/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "rds_free_space_low_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 30 +} + 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 93d3b13..00e9639 100644 --- a/cloud/aws/rds/common/monitors-rds-common.tf +++ b/cloud/aws/rds/common/monitors-rds-common.tf @@ -54,6 +54,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.rds_free_space_low_no_data_timeframe notify_audit = false timeout_h = 0 include_tags = true diff --git a/cloud/aws/vpn/README.md b/cloud/aws/vpn/README.md index 7ac16d6..94e71ab 100644 --- a/cloud/aws/vpn/README.md +++ b/cloud/aws/vpn/README.md @@ -33,6 +33,7 @@ Creates DataDog monitors with the following checks: | 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 | | vpn\_status\_message | Custom message for VPN status monitor | `string` | `""` | no | +| vpn\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | vpn\_status\_time\_aggregator | Monitor aggregator for VPN status [available values: min, max or avg] | `string` | `"max"` | no | | vpn\_status\_timeframe | Monitor timeframe for VPN status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | diff --git a/cloud/aws/vpn/inputs.tf b/cloud/aws/vpn/inputs.tf index 9239685..1d6333a 100644 --- a/cloud/aws/vpn/inputs.tf +++ b/cloud/aws/vpn/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "vpn_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 7027b16..2d6e77c 100644 --- a/cloud/aws/vpn/monitors-vpn.tf +++ b/cloud/aws/vpn/monitors-vpn.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.vpn_status_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/apimanagement/README.md b/cloud/azure/apimanagement/README.md index ced0adb..99894ed 100644 --- a/cloud/azure/apimanagement/README.md +++ b/cloud/azure/apimanagement/README.md @@ -27,6 +27,7 @@ Creates DataDog monitors with the following checks: | Name | Description | Type | Default | Required | |------|-------------|------|---------|:-----:| +| apimgt\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | environment | Architecture environment | `string` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `900` | no | | failed\_requests\_enabled | Flag to enable API Management failed requests monitor | `string` | `"true"` | no | diff --git a/cloud/azure/apimanagement/inputs.tf b/cloud/azure/apimanagement/inputs.tf index e9cb69f..da1fe59 100644 --- a/cloud/azure/apimanagement/inputs.tf +++ b/cloud/azure/apimanagement/inputs.tf @@ -29,6 +29,12 @@ variable "notify_no_data" { default = true } +variable "apimgt_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 6e37c04..908e40c 100644 --- a/cloud/azure/apimanagement/monitors-azure-apimanagement.tf +++ b/cloud/azure/apimanagement/monitors-azure-apimanagement.tf @@ -15,6 +15,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.apimgt_status_no_data_timeframe 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 440dede..f77656e 100644 --- a/cloud/azure/app-gateway/README.md +++ b/cloud/azure/app-gateway/README.md @@ -73,6 +73,7 @@ Creates DataDog monitors with the following checks: | appgateway\_http\_5xx\_errors\_threshold\_warning | Warning regarding acceptable percent of 5xx error | `number` | `80` | no | | appgateway\_http\_5xx\_errors\_time\_aggregator | Monitor aggregator for App Gateway http 5xx errors [available values: min, max or avg] | `string` | `"max"` | no | | appgateway\_http\_5xx\_errors\_timeframe | Monitor timeframe for App Gateway http 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 | +| appgateway\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | appgateway\_unhealthy\_host\_ratio\_enabled | Flag to enable App Gateway unhealthy host ratio monitor | `string` | `"true"` | no | | appgateway\_unhealthy\_host\_ratio\_extra\_tags | Extra tags for App Gateway unhealthy host ratio monitor | `list(string)` | `[]` | no | | appgateway\_unhealthy\_host\_ratio\_message | Custom message for App Gateway unhealthy host ratio monitor | `string` | `""` | no | diff --git a/cloud/azure/app-gateway/inputs.tf b/cloud/azure/app-gateway/inputs.tf index cdbbd8f..87eb820 100644 --- a/cloud/azure/app-gateway/inputs.tf +++ b/cloud/azure/app-gateway/inputs.tf @@ -43,6 +43,12 @@ variable "notify_no_data" { default = true } +variable "appgateway_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 34f2670..1b5265f 100644 --- a/cloud/azure/app-gateway/monitors-app-gateway.tf +++ b/cloud/azure/app-gateway/monitors-app-gateway.tf @@ -14,6 +14,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.appgateway_status_no_data_timeframe 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 72ad6b7..ea1d346 100644 --- a/cloud/azure/app-services/README.md +++ b/cloud/azure/app-services/README.md @@ -28,6 +28,7 @@ Creates DataDog monitors with the following checks: | Name | Description | Type | Default | Required | |------|-------------|------|---------|:-----:| +| appservices\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | environment | Architecture environment | `string` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `900` | no | | filter\_tags\_custom | Tags used for custom filtering when filter\_tags\_use\_defaults is false | `string` | `"*"` | no | diff --git a/cloud/azure/app-services/inputs.tf b/cloud/azure/app-services/inputs.tf index 8c8677a..a0c9b0e 100644 --- a/cloud/azure/app-services/inputs.tf +++ b/cloud/azure/app-services/inputs.tf @@ -42,6 +42,12 @@ variable "notify_no_data" { default = true } +variable "appservices_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 8b68f63..e6a0872 100644 --- a/cloud/azure/app-services/monitors-app_services.tf +++ b/cloud/azure/app-services/monitors-app_services.tf @@ -186,6 +186,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.appservices_status_no_data_timeframe 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 0a66ae5..d1fe19e 100644 --- a/cloud/azure/azure-search/README.md +++ b/cloud/azure/azure-search/README.md @@ -24,6 +24,7 @@ Creates DataDog monitors with the following checks: | Name | Description | Type | Default | Required | |------|-------------|------|---------|:-----:| +| azure\_search\_latency\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | environment | Architecture environment | `string` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `900` | no | | filter\_tags\_custom | Tags used for custom filtering when filter\_tags\_use\_defaults is false | `string` | `"*"` | no | diff --git a/cloud/azure/azure-search/inputs.tf b/cloud/azure/azure-search/inputs.tf index 32dd12b..ca0b277 100644 --- a/cloud/azure/azure-search/inputs.tf +++ b/cloud/azure/azure-search/inputs.tf @@ -42,6 +42,12 @@ variable "notify_no_data" { default = true } +variable "azure_search_latency_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 b2fc3bb..07e5657 100644 --- a/cloud/azure/azure-search/monitors-azure-search.tf +++ b/cloud/azure/azure-search/monitors-azure-search.tf @@ -19,6 +19,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.azure_search_latency_no_data_timeframe 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 f088e22..5df69ec 100644 --- a/cloud/azure/cosmosdb/README.md +++ b/cloud/azure/cosmosdb/README.md @@ -47,6 +47,7 @@ Creates DataDog monitors with the following checks: | cosmos\_db\_scaling\_message | Custom message for Cosmos DB scaling monitor | `string` | `""` | no | | cosmos\_db\_scaling\_time\_aggregator | Monitor aggregator for Cosmos DB scaling [available values: min, max or avg] | `string` | `"min"` | no | | cosmos\_db\_scaling\_timeframe | Monitor timeframe for Cosmos DB scaling [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | +| cosmos\_db\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | environment | Architecture environment | `string` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `900` | no | | filter\_tags\_custom | Tags used for custom filtering when filter\_tags\_use\_defaults is false | `string` | `"*"` | no | diff --git a/cloud/azure/cosmosdb/inputs.tf b/cloud/azure/cosmosdb/inputs.tf index e8bba35..585a764 100644 --- a/cloud/azure/cosmosdb/inputs.tf +++ b/cloud/azure/cosmosdb/inputs.tf @@ -42,6 +42,12 @@ variable "notify_no_data" { default = true } +variable "cosmos_db_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 4a561ff..f76f648 100644 --- a/cloud/azure/cosmosdb/monitors-cosmosdb.tf +++ b/cloud/azure/cosmosdb/monitors-cosmosdb.tf @@ -17,6 +17,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.cosmos_db_status_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/datalakestore/README.md b/cloud/azure/datalakestore/README.md index d38009e..17f1f87 100644 --- a/cloud/azure/datalakestore/README.md +++ b/cloud/azure/datalakestore/README.md @@ -23,6 +23,7 @@ Creates DataDog monitors with the following checks: | Name | Description | Type | Default | Required | |------|-------------|------|---------|:-----:| +| datalakestore\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | environment | Architecture environment | `string` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `900` | no | | filter\_tags\_custom | Tags used for custom filtering when filter\_tags\_use\_defaults is false | `string` | `"*"` | no | diff --git a/cloud/azure/datalakestore/inputs.tf b/cloud/azure/datalakestore/inputs.tf index 093fc75..ba4e314 100644 --- a/cloud/azure/datalakestore/inputs.tf +++ b/cloud/azure/datalakestore/inputs.tf @@ -42,6 +42,12 @@ variable "notify_no_data" { default = true } +variable "datalakestore_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 6a848c7..4aa0496 100644 --- a/cloud/azure/datalakestore/monitors-datalakestore.tf +++ b/cloud/azure/datalakestore/monitors-datalakestore.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.datalakestore_status_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/eventgrid/README.md b/cloud/azure/eventgrid/README.md index 98db545..a4de732 100644 --- a/cloud/azure/eventgrid/README.md +++ b/cloud/azure/eventgrid/README.md @@ -27,6 +27,7 @@ Creates DataDog monitors with the following checks: |------|-------------|------|---------|:-----:| | environment | Architecture environment | `string` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `900` | no | +| eventgrid\_no\_successful\_message\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | failed\_messages\_rate\_enabled | Flag to enable Event Grid failed messages monitor | `string` | `"true"` | no | | failed\_messages\_rate\_extra\_tags | Extra tags for Event Grid failed messages monitor | `list(string)` | `[]` | no | | failed\_messages\_rate\_message | Custom message for Event Grid failed messages monitor | `string` | `""` | no | diff --git a/cloud/azure/eventgrid/inputs.tf b/cloud/azure/eventgrid/inputs.tf index 3a3be4e..61c7693 100644 --- a/cloud/azure/eventgrid/inputs.tf +++ b/cloud/azure/eventgrid/inputs.tf @@ -29,6 +29,12 @@ variable "notify_no_data" { default = true } +variable "eventgrid_no_successful_message_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 ffa4897..f4379c7 100644 --- a/cloud/azure/eventgrid/monitors-eventgrid.tf +++ b/cloud/azure/eventgrid/monitors-eventgrid.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.eventgrid_no_successful_message_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/eventhub/README.md b/cloud/azure/eventhub/README.md index 1c5628d..94ec143 100644 --- a/cloud/azure/eventhub/README.md +++ b/cloud/azure/eventhub/README.md @@ -34,6 +34,7 @@ Creates DataDog monitors with the following checks: | errors\_rate\_time\_aggregator | Monitor aggregator for Event Hub errors [available values: min, max or avg] | `string` | `"min"` | no | | errors\_rate\_timeframe | Monitor timeframe for Event Hub errors [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `900` | no | +| eventhub\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | failed\_requests\_rate\_enabled | Flag to enable Event Hub failed requests monitor | `string` | `"true"` | no | | failed\_requests\_rate\_extra\_tags | Extra tags for Event Hub failed requests monitor | `list(string)` | `[]` | no | | failed\_requests\_rate\_message | Custom message for Event Hub failed requests monitor | `string` | `""` | no | diff --git a/cloud/azure/eventhub/inputs.tf b/cloud/azure/eventhub/inputs.tf index 4686837..bcc9797 100644 --- a/cloud/azure/eventhub/inputs.tf +++ b/cloud/azure/eventhub/inputs.tf @@ -29,6 +29,12 @@ variable "notify_no_data" { default = true } +variable "eventhub_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 c0e7d48..293fa2c 100644 --- a/cloud/azure/eventhub/monitors-eventhub.tf +++ b/cloud/azure/eventhub/monitors-eventhub.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.eventhub_status_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/iothubs/README.md b/cloud/azure/iothubs/README.md index b8961c8..692621e 100644 --- a/cloud/azure/iothubs/README.md +++ b/cloud/azure/iothubs/README.md @@ -125,6 +125,7 @@ Creates DataDog monitors with the following checks: | status\_enabled | Flag to enable IoT Hub status monitor | `string` | `"true"` | no | | status\_extra\_tags | Extra tags for IoT Hub status monitor | `list(string)` | `[]` | no | | status\_message | Custom message for IoT Hub status monitor | `string` | `""` | no | +| status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | status\_time\_aggregator | Monitor aggregator for IoT Hub status [available values: min, max, sum or avg] | `string` | `"max"` | no | | status\_timeframe | Monitor timeframe for IoT Hub status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | | too\_many\_d2c\_telemetry\_ingress\_nosent\_enabled | Flag to enable IoT Hub unsent d2c telemetry monitor | `string` | `"true"` | no | diff --git a/cloud/azure/iothubs/inputs.tf b/cloud/azure/iothubs/inputs.tf index a44b485..0a5e90e 100644 --- a/cloud/azure/iothubs/inputs.tf +++ b/cloud/azure/iothubs/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 a0b5593..9c6a255 100644 --- a/cloud/azure/iothubs/monitors-iothubs.tf +++ b/cloud/azure/iothubs/monitors-iothubs.tf @@ -124,6 +124,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.status_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/keyvault/README.md b/cloud/azure/keyvault/README.md index 89bce60..ee8e826 100644 --- a/cloud/azure/keyvault/README.md +++ b/cloud/azure/keyvault/README.md @@ -44,6 +44,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_custom | Tags used for custom filtering when filter\_tags\_use\_defaults is false | `string` | `"*"` | no | | filter\_tags\_custom\_excluded | Tags excluded for custom filtering when filter\_tags\_use\_defaults is false | `string` | `""` | no | | filter\_tags\_use\_defaults | Use default filter tags convention | `string` | `"true"` | no | +| keyvault\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | message | Message sent when a monitor is triggered | `any` | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | `number` | `300` | no | | notify\_no\_data | Will raise no data alert if set to true | `bool` | `true` | no | diff --git a/cloud/azure/keyvault/inputs.tf b/cloud/azure/keyvault/inputs.tf index 55e5843..177752c 100644 --- a/cloud/azure/keyvault/inputs.tf +++ b/cloud/azure/keyvault/inputs.tf @@ -42,6 +42,12 @@ variable "notify_no_data" { default = true } +variable "keyvault_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 1ff9f22..90692f1 100644 --- a/cloud/azure/keyvault/monitors-keyvault.tf +++ b/cloud/azure/keyvault/monitors-keyvault.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.keyvault_status_no_data_timeframe 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 de1dc3d..dc80edb 100644 --- a/cloud/azure/load-balancer/README.md +++ b/cloud/azure/load-balancer/README.md @@ -28,6 +28,7 @@ Creates DataDog monitors with the following checks: | filter\_tags\_custom | Tags used for custom filtering when filter\_tags\_use\_defaults is false | `string` | `"*"` | no | | filter\_tags\_custom\_excluded | Tags excluded for custom filtering when filter\_tags\_use\_defaults is false | `string` | `""` | no | | filter\_tags\_use\_defaults | Use default filter tags convention | `string` | `"true"` | no | +| loadbalancer\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | message | Message sent when a monitor is triggered | `any` | n/a | yes | | new\_host\_delay | Delay in seconds before monitor new resource | `number` | `300` | no | | notify\_no\_data | Will raise no data alert if set to true | `bool` | `true` | no | diff --git a/cloud/azure/load-balancer/inputs.tf b/cloud/azure/load-balancer/inputs.tf index a5f0a10..614411f 100644 --- a/cloud/azure/load-balancer/inputs.tf +++ b/cloud/azure/load-balancer/inputs.tf @@ -42,6 +42,12 @@ variable "notify_no_data" { default = true } +variable "loadbalancer_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # 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 207950d..4f9a844 100644 --- a/cloud/azure/load-balancer/monitors-load-balancer.tf +++ b/cloud/azure/load-balancer/monitors-load-balancer.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.loadbalancer_status_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/postgresql/README.md b/cloud/azure/postgresql/README.md index b49ae98..9055214 100644 --- a/cloud/azure/postgresql/README.md +++ b/cloud/azure/postgresql/README.md @@ -67,6 +67,7 @@ Creates DataDog monitors with the following checks: | 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 | `bool` | `true` | no | +| postgresql\_no\_connection\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | 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 41189e6..07512a0 100644 --- a/cloud/azure/postgresql/inputs.tf +++ b/cloud/azure/postgresql/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "postgresql_no_connection_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 d08ab38..a24827d 100644 --- a/cloud/azure/postgresql/monitors-postegresql.tf +++ b/cloud/azure/postgresql/monitors-postegresql.tf @@ -47,6 +47,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.postgresql_no_connection_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/redis/README.md b/cloud/azure/redis/README.md index 651b5fd..efeea58 100644 --- a/cloud/azure/redis/README.md +++ b/cloud/azure/redis/README.md @@ -59,6 +59,7 @@ Creates DataDog monitors with the following checks: | status\_enabled | Flag to enable Redis status monitor | `string` | `"true"` | no | | status\_extra\_tags | Extra tags for Redis status monitor | `list(string)` | `[]` | no | | status\_message | Custom message for Redis status monitor | `string` | `""` | no | +| status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | status\_time\_aggregator | Monitor aggregator for Redis status [available values: min, max or avg] | `string` | `"max"` | no | | status\_timeframe | Monitor timeframe for Redis status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | diff --git a/cloud/azure/redis/inputs.tf b/cloud/azure/redis/inputs.tf index 15eefd0..271b2c5 100644 --- a/cloud/azure/redis/inputs.tf +++ b/cloud/azure/redis/inputs.tf @@ -29,6 +29,12 @@ variable "notify_no_data" { default = true } +variable "status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 2f33e90..1349a67 100644 --- a/cloud/azure/redis/monitors-azure-redis.tf +++ b/cloud/azure/redis/monitors-azure-redis.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.status_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/serverfarms/README.md b/cloud/azure/serverfarms/README.md index b3398a2..545ac93 100644 --- a/cloud/azure/serverfarms/README.md +++ b/cloud/azure/serverfarms/README.md @@ -50,6 +50,7 @@ Creates DataDog monitors with the following checks: | status\_enabled | Flag to enable the serverfarms status monitor | `string` | `"true"` | no | | status\_extra\_tags | Extra tags for serverfarms status monitor | `list(string)` | `[]` | no | | status\_message | Custom message for serverfarm status monitor | `string` | `""` | no | +| status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | status\_time\_aggregator | Monitor aggregator for serverfarms status [available values: min, max or avg] | `string` | `"max"` | no | | status\_timeframe | Monitor timeframe for serverfarms status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | diff --git a/cloud/azure/serverfarms/inputs.tf b/cloud/azure/serverfarms/inputs.tf index 9db9907..5125827 100644 --- a/cloud/azure/serverfarms/inputs.tf +++ b/cloud/azure/serverfarms/inputs.tf @@ -29,6 +29,12 @@ variable "notify_no_data" { default = true } +variable "status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 8ef7105..ba474df 100644 --- a/cloud/azure/serverfarms/monitors-azure-serverfarms.tf +++ b/cloud/azure/serverfarms/monitors-azure-serverfarms.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.status_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/servicebus/README.md b/cloud/azure/servicebus/README.md index bba6b3a..ecf0623 100644 --- a/cloud/azure/servicebus/README.md +++ b/cloud/azure/servicebus/README.md @@ -47,6 +47,7 @@ Creates DataDog monitors with the following checks: | server\_errors\_threshold\_warning | Warning threshold for Service Bus server errors monitor | `number` | `50` | no | | server\_errors\_time\_aggregator | Monitor aggregator for Service Bus server errors [available values: min, max or avg] | `string` | `"min"` | no | | server\_errors\_timeframe | Monitor timeframe for Service Bus server errors [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | +| servicebus\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | status\_enabled | Flag to enable Service Bus status monitor | `string` | `"true"` | no | | status\_extra\_tags | Extra tags for Service Bus status monitor | `list(string)` | `[]` | no | | status\_message | Custom message for Service Bus status monitor | `string` | `""` | no | diff --git a/cloud/azure/servicebus/inputs.tf b/cloud/azure/servicebus/inputs.tf index bf1f77e..cf594ed 100644 --- a/cloud/azure/servicebus/inputs.tf +++ b/cloud/azure/servicebus/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "servicebus_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 f991e78..0161a01 100644 --- a/cloud/azure/servicebus/monitors-service-bus.tf +++ b/cloud/azure/servicebus/monitors-service-bus.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.servicebus_status_no_data_timeframe 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 617dfcf..3e22ded 100644 --- a/cloud/azure/sql-database/README.md +++ b/cloud/azure/sql-database/README.md @@ -65,6 +65,7 @@ Creates DataDog monitors with the following checks: | status\_enabled | Flag to enable Redis status monitor | `string` | `"true"` | no | | status\_extra\_tags | Extra tags for Redis status monitor | `list(string)` | `[]` | no | | status\_message | Custom message for Redis status monitor | `string` | `""` | no | +| status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | status\_time\_aggregator | Monitor aggregator for Redis status [available values: min, max or avg] | `string` | `"max"` | no | | status\_timeframe | Monitor timeframe for Redis status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | diff --git a/cloud/azure/sql-database/inputs.tf b/cloud/azure/sql-database/inputs.tf index 763e291..6fffd14 100644 --- a/cloud/azure/sql-database/inputs.tf +++ b/cloud/azure/sql-database/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 d379da7..4895690 100644 --- a/cloud/azure/sql-database/monitors-sql-database.tf +++ b/cloud/azure/sql-database/monitors-sql-database.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.status_no_data_timeframe 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 a2fb383..7406960 100644 --- a/cloud/azure/sql-elasticpool/README.md +++ b/cloud/azure/sql-elasticpool/README.md @@ -55,6 +55,7 @@ Creates DataDog monitors with the following checks: | new\_host\_delay | Delay in seconds before monitor new resource | `number` | `300` | no | | notify\_no\_data | Will raise no data alert if set to true | `bool` | `true` | no | | prefix\_slug | Prefix string to prepend between brackets on every monitors names | `string` | `""` | no | +| sql\_elasticpool\_cpu\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `30` | no | ## Outputs diff --git a/cloud/azure/sql-elasticpool/inputs.tf b/cloud/azure/sql-elasticpool/inputs.tf index cc7146b..ac04bed 100644 --- a/cloud/azure/sql-elasticpool/inputs.tf +++ b/cloud/azure/sql-elasticpool/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "sql_elasticpool_cpu_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 30 +} + 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 8e7abca..78cec3e 100644 --- a/cloud/azure/sql-elasticpool/monitors-sql-elasticpool.tf +++ b/cloud/azure/sql-elasticpool/monitors-sql-elasticpool.tf @@ -18,6 +18,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.sql_elasticpool_cpu_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/azure/storage/README.md b/cloud/azure/storage/README.md index 1997d28..412922d 100644 --- a/cloud/azure/storage/README.md +++ b/cloud/azure/storage/README.md @@ -118,6 +118,7 @@ Creates DataDog monitors with the following checks: | status\_silenced | Groups to mute for App Services status monitor | `map(string)` | `{}` | no | | status\_time\_aggregator | Monitor aggregator for Storage Services status [available values: min, max or avg] | `string` | `"max"` | no | | status\_timeframe | Monitor timeframe for Storage Services status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | +| storage\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | successful\_requests\_enabled | Flag to enable Storage sucessful requests monitor | `string` | `"true"` | no | | successful\_requests\_extra\_tags | Extra tags for Storage sucessful requests monitor | `list(string)` | `[]` | no | | successful\_requests\_message | Custom message for Storage sucessful requests monitor | `string` | `""` | no | diff --git a/cloud/azure/storage/inputs.tf b/cloud/azure/storage/inputs.tf index 8a98920..e95c3d6 100644 --- a/cloud/azure/storage/inputs.tf +++ b/cloud/azure/storage/inputs.tf @@ -29,6 +29,12 @@ variable "notify_no_data" { default = true } +variable "storage_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 aec3bd3..173d7b5 100644 --- a/cloud/azure/storage/monitors-azure-storage.tf +++ b/cloud/azure/storage/monitors-azure-storage.tf @@ -15,6 +15,7 @@ EOQ silenced = var.status_silenced type = "metric alert" notify_no_data = var.notify_no_data + no_data_timeframe = var.storage_status_no_data_timeframe 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 da509e8..1e66e35 100644 --- a/cloud/azure/stream-analytics/README.md +++ b/cloud/azure/stream-analytics/README.md @@ -60,6 +60,7 @@ Creates DataDog monitors with the following checks: | status\_enabled | Flag to enable Stream Analytics status monitor | `string` | `"true"` | no | | status\_extra\_tags | Extra tags for Stream Analytics status monitor | `list(string)` | `[]` | no | | status\_message | Custom message for Stream Analytics status monitor | `string` | `""` | no | +| status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | status\_time\_aggregator | Monitor aggregator for Stream Analytics status [available values: min, max or avg] | `string` | `"max"` | no | | status\_timeframe | Monitor timeframe for Stream Analytics status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | | su\_utilization\_enabled | Flag to enable Stream Analytics utilization monitor | `string` | `"true"` | no | diff --git a/cloud/azure/stream-analytics/inputs.tf b/cloud/azure/stream-analytics/inputs.tf index d457af3..fd4ba71 100644 --- a/cloud/azure/stream-analytics/inputs.tf +++ b/cloud/azure/stream-analytics/inputs.tf @@ -29,6 +29,12 @@ variable "notify_no_data" { default = true } +variable "status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 cbf2f35..ae51b98 100644 --- a/cloud/azure/stream-analytics/monitors-stream-analytics.tf +++ b/cloud/azure/stream-analytics/monitors-stream-analytics.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.status_no_data_timeframe 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 da72265..a08f3b2 100644 --- a/cloud/azure/virtual-machine/README.md +++ b/cloud/azure/virtual-machine/README.md @@ -77,6 +77,7 @@ Creates DataDog monitors with the following checks: | status\_message | Custom message for Virtual Machine status monitor | `string` | `""` | no | | status\_time\_aggregator | Monitor aggregator for Virtual Machine status [available values: min, max or avg] | `string` | `"max"` | no | | status\_timeframe | Monitor timeframe for Virtual Machine status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_5m"` | no | +| virtualmachine\_status\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | ## Outputs diff --git a/cloud/azure/virtual-machine/inputs.tf b/cloud/azure/virtual-machine/inputs.tf index 48e6eb3..336e341 100644 --- a/cloud/azure/virtual-machine/inputs.tf +++ b/cloud/azure/virtual-machine/inputs.tf @@ -29,6 +29,12 @@ variable "notify_no_data" { default = true } +variable "virtualmachine_status_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 e92c4cc..edfbfe9 100644 --- a/cloud/azure/virtual-machine/monitors-virtual-machine.tf +++ b/cloud/azure/virtual-machine/monitors-virtual-machine.tf @@ -13,6 +13,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.virtualmachine_status_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/cloud/gcp/cloud-sql/common/README.md b/cloud/gcp/cloud-sql/common/README.md index 2122cbe..c2f2b9c 100644 --- a/cloud/gcp/cloud-sql/common/README.md +++ b/cloud/gcp/cloud-sql/common/README.md @@ -51,6 +51,7 @@ Creates DataDog monitors with the following checks: | disk\_utilization\_forecast\_time\_aggregator | Time aggregator for the Disk Utilization Forecast monitor | `string` | `"max"` | no | | disk\_utilization\_forecast\_timeframe | Timeframe for the Disk Utilization Forecast monitor | `string` | `"next_1w"` | no | | disk\_utilization\_message | Custom message for the Disk Utilization monitor | `string` | `""` | no | +| disk\_utilization\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | disk\_utilization\_threshold\_critical | Disk Utilization in percentage (critical threshold) | `string` | `90` | no | | disk\_utilization\_threshold\_warning | Disk Utilization in percentage (warning threshold) | `string` | `80` | no | | disk\_utilization\_time\_aggregator | Time aggregator for the Disk Utilization monitor | `string` | `"avg"` | no | diff --git a/cloud/gcp/cloud-sql/common/inputs.tf b/cloud/gcp/cloud-sql/common/inputs.tf index a9c4b50..089a992 100644 --- a/cloud/gcp/cloud-sql/common/inputs.tf +++ b/cloud/gcp/cloud-sql/common/inputs.tf @@ -35,6 +35,12 @@ variable "notify_no_data" { default = true } +variable "disk_utilization_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + # # 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 57f244a..c3686f0 100644 --- a/cloud/gcp/cloud-sql/common/monitors-cloud-sql-common.tf +++ b/cloud/gcp/cloud-sql/common/monitors-cloud-sql-common.tf @@ -63,6 +63,7 @@ EOQ include_tags = true require_full_window = false notify_no_data = var.notify_no_data + no_data_timeframe = var.disk_utilization_no_data_timeframe 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 23c7962..6588f7a 100644 --- a/cloud/gcp/cloud-sql/mysql/README.md +++ b/cloud/gcp/cloud-sql/mysql/README.md @@ -33,6 +33,7 @@ Creates DataDog monitors with the following checks: | 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 | | replication\_lag\_message | Custom message for the Replication Lag monitor | `string` | `""` | no | +| replication\_lag\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `20` | no | | replication\_lag\_threshold\_critical | Seconds behind the master (critical threshold) | `string` | `180` | no | | replication\_lag\_threshold\_warning | Seconds behind the master (warning threshold) | `string` | `90` | no | | replication\_lag\_time\_aggregator | Time aggregator for the Replication Lag monitor | `string` | `"min"` | no | diff --git a/cloud/gcp/cloud-sql/mysql/inputs.tf b/cloud/gcp/cloud-sql/mysql/inputs.tf index 5f75710..65cdb43 100644 --- a/cloud/gcp/cloud-sql/mysql/inputs.tf +++ b/cloud/gcp/cloud-sql/mysql/inputs.tf @@ -35,6 +35,12 @@ variable "notify_no_data" { default = true } +variable "replication_lag_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 20 +} + # # 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 bfa8326..85393fb 100644 --- a/cloud/gcp/cloud-sql/mysql/monitors-cloudsql-mysql.tf +++ b/cloud/gcp/cloud-sql/mysql/monitors-cloudsql-mysql.tf @@ -26,6 +26,7 @@ EOQ include_tags = true require_full_window = false notify_no_data = var.notify_no_data + no_data_timeframe = var.replication_lag_no_data_timeframe 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 d4dc091..de2ae5b 100644 --- a/cloud/gcp/gce/instance/README.md +++ b/cloud/gcp/gce/instance/README.md @@ -28,6 +28,7 @@ Creates DataDog monitors with the following checks: | cpu\_utilization\_enabled | Flag to enable CPU Utilization monitor | `string` | `"true"` | no | | cpu\_utilization\_extra\_tags | Extra tags for CPU Utilization monitor | `list(string)` | `[]` | no | | cpu\_utilization\_message | Custom message for the CPU Utilization monitor | `string` | `""` | no | +| cpu\_utilization\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `30` | no | | cpu\_utilization\_threshold\_critical | CPU Utilization in percentage (critical threshold) | `string` | `90` | no | | cpu\_utilization\_threshold\_warning | CPU Utilization in percentage (warning threshold) | `string` | `80` | no | | cpu\_utilization\_time\_aggregator | Time aggregator for the CPU Utilization monitor | `string` | `"avg"` | no | diff --git a/cloud/gcp/gce/instance/inputs.tf b/cloud/gcp/gce/instance/inputs.tf index 6cfa3f5..893db24 100644 --- a/cloud/gcp/gce/instance/inputs.tf +++ b/cloud/gcp/gce/instance/inputs.tf @@ -35,6 +35,12 @@ variable "notify_no_data" { default = true } +variable "cpu_utilization_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 30 +} + # # CPU # diff --git a/cloud/gcp/gce/instance/monitors-gce-instance.tf b/cloud/gcp/gce/instance/monitors-gce-instance.tf index 6f77b35..62ff8de 100644 --- a/cloud/gcp/gce/instance/monitors-gce-instance.tf +++ b/cloud/gcp/gce/instance/monitors-gce-instance.tf @@ -26,6 +26,7 @@ EOQ include_tags = true require_full_window = false notify_no_data = var.notify_no_data + no_data_timeframe = var.cpu_utilization_no_data_timeframe 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) diff --git a/database/mongodb/README.md b/database/mongodb/README.md index 9d0019c..c024cb8 100644 --- a/database/mongodb/README.md +++ b/database/mongodb/README.md @@ -39,6 +39,7 @@ Creates DataDog monitors with the following checks: | mongodb\_primary\_enabled | Flag to enable MongoDB primary state monitor | `string` | `"true"` | no | | mongodb\_primary\_extra\_tags | Extra tags for MongoDB primary state monitor | `list(string)` | `[]` | no | | mongodb\_primary\_message | Custom message for MongoDB primary monitor | `string` | `""` | no | +| mongodb\_primary\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | mongodb\_primary\_timeframe | Monitor timeframe for MongoDB wrong state for primary node [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | `string` | `"last_1m"` | no | | mongodb\_replication\_aggregator | Monitor aggregator for MongoDB replication lag [available values: min, max, sum or avg] | `string` | `"avg"` | no | | mongodb\_replication\_enabled | Flag to enable MongoDB replication lag monitor | `string` | `"true"` | no | diff --git a/database/mongodb/inputs.tf b/database/mongodb/inputs.tf index 1e27a6e..6e62fd0 100644 --- a/database/mongodb/inputs.tf +++ b/database/mongodb/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "mongodb_primary_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 c8100a6..14e297a 100644 --- a/database/mongodb/monitors-mongo.tf +++ b/database/mongodb/monitors-mongo.tf @@ -12,6 +12,7 @@ EOQ evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.mongodb_primary_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0 diff --git a/middleware/apache/README.md b/middleware/apache/README.md index a2e7688..946d2a3 100644 --- a/middleware/apache/README.md +++ b/middleware/apache/README.md @@ -27,6 +27,7 @@ Creates DataDog monitors with the following checks: | apache\_connect\_extra\_tags | Extra tags for Apache process monitor | `list(string)` | `[]` | no | | apache\_connect\_message | Custom message for Apache status monitor | `string` | `""` | no | | apache\_connect\_threshold\_warning | Apache status monitor (warning threshold) | `string` | `3` | no | +| datadog\_apache\_process\_no\_data\_timeframe | Number of minutes before reporting no data | `string` | `10` | no | | environment | Architecture Environment | `string` | n/a | yes | | evaluation\_delay | Delay in seconds for the metric evaluation | `number` | `15` | no | | filter\_tags\_custom | Tags used for custom filtering when filter\_tags\_use\_defaults is false | `string` | `"*"` | no | diff --git a/middleware/apache/inputs.tf b/middleware/apache/inputs.tf index 3ca24c0..ed0cf18 100644 --- a/middleware/apache/inputs.tf +++ b/middleware/apache/inputs.tf @@ -25,6 +25,12 @@ variable "notify_no_data" { default = true } +variable "datadog_apache_process_no_data_timeframe" { + description = "Number of minutes before reporting no data" + type = string + default = 10 +} + 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 6099bed..634c934 100644 --- a/middleware/apache/monitors-apache.tf +++ b/middleware/apache/monitors-apache.tf @@ -15,6 +15,7 @@ EOQ new_host_delay = var.new_host_delay notify_no_data = var.notify_no_data + no_data_timeframe = var.datadog_apache_process_no_data_timeframe renotify_interval = 0 notify_audit = false timeout_h = 0