support for datadog provider v3 (#3)

Co-authored-by: Patrick Decat <pdecat@gmail.com>
This commit is contained in:
Quentin Manfroi 2021-06-22 14:47:02 +02:00 committed by GitHub
parent 06cea640c2
commit b8119aef2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
235 changed files with 636 additions and 1848 deletions

View File

@ -1,3 +1,9 @@
# v4.0.0 (Jun 22, 2021)
## New Feature
* Support for Datadog provider v3 (#3)
# v3.6.0 (January 27, 2021)
## Improvement

View File

@ -14,18 +14,24 @@ This repository aims to provide a base of generic and pre configured monitors fo
## Getting started
### Terraform
### Versions
Here is the minimum version required to use these modules of integrations.
Here are the minimum versions required to use these modules of integrations.
```
```hcl
terraform {
required_version = ">= 0.12.26"
required_providers {
datadog = {
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.31"
}
```
Note: terraform 0.12.26+ is required as it the first version compatible with, but ignoring, the `source` argument for provider requirements introduced in terraform 0.13.0.
_Note_: if you want to use Datadog provider v2, you need to use version 3 of the modules in this repository.
### DataDog provider
@ -33,8 +39,6 @@ Here is the last tester terraform provider version for datadog but next versions
```
provider "datadog" {
version = "2.6.0" # last tested working version
api_key = var.datadog_api_key
app_key = var.datadog_app_key
}

View File

@ -24,7 +24,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -11,7 +11,7 @@ resource "datadog_monitor" "not_responding" {
"docker.service_up"${module.filter-tags.service_check}.by("host").last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.not_responding_threshold_warning
critical = 5
}
@ -27,10 +27,6 @@ EOQ
renotify_interval = 0
tags = concat(["env:${var.environment}", "type:docker", "provider:docker", "resource:docker", "team:claranet", "created-by:terraform"], var.not_responding_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "memory_used" {
@ -45,7 +41,7 @@ resource "datadog_monitor" "memory_used" {
> ${var.memory_used_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.memory_used_threshold_warning
critical = var.memory_used_threshold_critical
}
@ -61,9 +57,5 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:docker", "provider:docker", "resource:docker", "team:claranet", "created-by:terraform"], var.memory_used_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -23,7 +23,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -8,7 +8,7 @@ resource "datadog_monitor" "ark_schedules_monitor" {
sum(${var.ark_schedules_monitor_timeframe}):min:ark.ark_backup_failure_total${module.filter-tags.query_alert} by {schedule}.as_count() > 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
warning = 0
}
@ -26,9 +26,5 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:caas", "provider:prometheus", "resource:ark", "team:claranet", "created-by:terraform"], var.ark_schedules_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -23,7 +23,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -9,7 +9,7 @@ resource "datadog_monitor" "apiserver" {
"kube_apiserver_controlplane.up"${module.filter-tags.service_check}.last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.apiserver_threshold_warning
critical = 5
}
@ -25,9 +25,5 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.apiserver_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -24,7 +24,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -11,7 +11,7 @@ resource "datadog_monitor" "nginx_ingress_too_many_5xx" {
* 100, 0) > ${var.ingress_5xx_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.ingress_5xx_threshold_warning
critical = var.ingress_5xx_threshold_critical
}
@ -27,10 +27,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:prometheus", "resource:nginx-ingress-controller", "team:claranet", "created-by:terraform"], var.ingress_5xx_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "nginx_ingress_too_many_4xx" {
@ -46,7 +42,7 @@ resource "datadog_monitor" "nginx_ingress_too_many_4xx" {
* 100, 0) > ${var.ingress_4xx_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.ingress_4xx_threshold_warning
critical = var.ingress_4xx_threshold_critical
}
@ -62,9 +58,5 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:prometheus", "resource:nginx-ingress-controller", "team:claranet", "created-by:terraform"], var.ingress_4xx_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -32,7 +32,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -8,7 +8,7 @@ resource "datadog_monitor" "disk_pressure" {
"kubernetes_state.node.disk_pressure"${module.filter-tags.service_check}.by("node").last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.disk_pressure_threshold_warning
critical = 5
}
@ -23,10 +23,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.disk_pressure_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "disk_out" {
@ -39,7 +35,7 @@ resource "datadog_monitor" "disk_out" {
"kubernetes_state.node.out_of_disk"${module.filter-tags.service_check}.by("node").last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.disk_out_threshold_warning
critical = 5
}
@ -54,10 +50,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.disk_out_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "memory_pressure" {
@ -70,7 +62,7 @@ resource "datadog_monitor" "memory_pressure" {
"kubernetes_state.node.memory_pressure"${module.filter-tags.service_check}.by("node").last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.memory_pressure_threshold_warning
critical = 5
}
@ -85,10 +77,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.memory_pressure_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ready" {
@ -101,7 +89,7 @@ resource "datadog_monitor" "ready" {
"kubernetes_state.node.ready"${module.filter-tags.service_check}.by("node").last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.ready_threshold_warning
critical = 5
}
@ -116,10 +104,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.ready_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "kubelet_ping" {
@ -132,7 +116,7 @@ resource "datadog_monitor" "kubelet_ping" {
"kubernetes.kubelet.check.ping"${module.filter-tags.service_check}.by("name").last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.kubelet_ping_threshold_warning
critical = 5
}
@ -148,10 +132,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.kubelet_ping_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "kubelet_syncloop" {
@ -164,7 +144,7 @@ resource "datadog_monitor" "kubelet_syncloop" {
"kubernetes.kubelet.check.syncloop"${module.filter-tags.service_check}.by("name").last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.kubelet_syncloop_threshold_warning
critical = 5
}
@ -179,10 +159,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.kubelet_syncloop_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "unregister_net_device" {
@ -204,10 +180,6 @@ EOQ
locked = false
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.unregister_net_device_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "node_unschedulable" {
@ -222,7 +194,7 @@ resource "datadog_monitor" "node_unschedulable" {
> 0
EOQ
thresholds = {
monitor_thresholds {
critical = 0
}
@ -237,10 +209,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.node_unschedulable_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "volume_space" {
@ -256,7 +224,7 @@ resource "datadog_monitor" "volume_space" {
* 100 > ${var.volume_space_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.volume_space_threshold_critical
warning = var.volume_space_threshold_warning
}
@ -272,10 +240,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.volume_space_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "volume_inodes" {
@ -291,7 +255,7 @@ resource "datadog_monitor" "volume_inodes" {
* 100 > ${var.volume_inodes_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.volume_inodes_threshold_critical
warning = var.volume_inodes_threshold_warning
}
@ -307,9 +271,5 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-node", "team:claranet", "created-by:terraform"], var.volume_inodes_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -25,7 +25,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -9,7 +9,7 @@ resource "datadog_monitor" "pod_phase_status" {
default(sum:kubernetes_state.pod.status_phase${module.filter-tags-phase.query_alert} by {namespace,kube_cluster_name}, 0) > 0
EOQ
thresholds = {
monitor_thresholds {
critical = 0
}
@ -25,10 +25,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-pod", "team:claranet", "created-by:terraform"], var.pod_phase_status_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "error" {
@ -43,7 +39,7 @@ resource "datadog_monitor" "error" {
> ${var.error_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.error_threshold_critical
warning = var.error_threshold_warning
}
@ -59,10 +55,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-pod", "team:claranet", "created-by:terraform"], var.error_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "terminated" {
@ -77,7 +69,7 @@ resource "datadog_monitor" "terminated" {
> ${var.terminated_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.terminated_threshold_critical
warning = var.terminated_threshold_warning
}
@ -93,9 +85,5 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-pod", "team:claranet", "created-by:terraform"], var.terminated_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -27,7 +27,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -8,7 +8,7 @@ resource "datadog_monitor" "velero_scheduled_backup_missing" {
sum(${var.velero_scheduled_backup_missing_monitor_timeframe}):sum:velero.velero_backup_success_total${module.filter-tags-scheduled-backup.query_alert} by {cluster-name,schedule}.as_count() < 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
}
@ -25,10 +25,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:openmetrics", "resource:velero", "team:claranet", "created-by:terraform"], var.velero_scheduled_backup_missing_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "velero_backup_failure" {
@ -41,7 +37,7 @@ resource "datadog_monitor" "velero_backup_failure" {
sum(${var.velero_backup_failure_monitor_timeframe}):min:velero.velero_backup_failure_total${module.filter-tags.query_alert} by {schedule}.as_count() > 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
warning = 0
}
@ -58,10 +54,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:openmetrics", "resource:velero", "team:claranet", "created-by:terraform"], var.velero_backup_failure_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "velero_backup_partial_failure" {
@ -74,7 +66,7 @@ resource "datadog_monitor" "velero_backup_partial_failure" {
sum(${var.velero_backup_partial_failure_monitor_timeframe}):min:velero.velero_backup_partial_failure_total${module.filter-tags.query_alert} by {schedule}.as_count() > 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
warning = 0
}
@ -91,10 +83,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:openmetrics", "resource:velero", "team:claranet", "created-by:terraform"], var.velero_backup_partial_failure_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "velero_backup_deletion_failure" {
@ -107,7 +95,7 @@ resource "datadog_monitor" "velero_backup_deletion_failure" {
sum(${var.velero_backup_deletion_failure_monitor_timeframe}):min:velero.velero_backup_deletion_failure_total${module.filter-tags.query_alert} by {schedule}.as_count() > 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
warning = 0
}
@ -124,10 +112,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:openmetrics", "resource:velero", "team:claranet", "created-by:terraform"], var.velero_backup_deletion_failure_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "velero_volume_snapshot_failure" {
@ -140,7 +124,7 @@ resource "datadog_monitor" "velero_volume_snapshot_failure" {
sum(${var.velero_volume_snapshot_failure_monitor_timeframe}):min:velero.velero_volume_snapshot_failure_total${module.filter-tags.query_alert} by {schedule}.as_count() > 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
warning = 0
}
@ -157,9 +141,5 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:openmetrics", "resource:velero", "team:claranet", "created-by:terraform"], var.velero_volume_snapshot_failure_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -27,7 +27,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -8,7 +8,7 @@ resource "datadog_monitor" "job" {
"kubernetes_state.job.complete"${module.filter-tags.service_check}.by("job_name").last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.job_threshold_warning
critical = 5
}
@ -23,10 +23,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-workload", "team:claranet", "created-by:terraform"], var.job_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "cronjob" {
@ -39,7 +35,7 @@ resource "datadog_monitor" "cronjob" {
"kubernetes_state.cronjob.on_schedule_check"${module.filter-tags.service_check}.by("cronjob").last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.cronjob_threshold_warning
critical = 5
}
@ -54,10 +50,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-workload", "team:claranet", "created-by:terraform"], var.cronjob_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "replica_available" {
@ -73,7 +65,7 @@ resource "datadog_monitor" "replica_available" {
+ 1 < ${var.replica_available_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.replica_available_threshold_critical
}
@ -88,10 +80,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-workload", "team:claranet", "created-by:terraform"], var.replica_available_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "replica_ready" {
@ -107,7 +95,7 @@ resource "datadog_monitor" "replica_ready" {
+ 1 < ${var.replica_available_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.replica_ready_threshold_critical
}
@ -122,10 +110,6 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-workload", "team:claranet", "created-by:terraform"], var.replica_ready_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "replica_current" {
@ -141,7 +125,7 @@ resource "datadog_monitor" "replica_current" {
+ 1 < ${var.replica_available_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.replica_current_threshold_critical
}
@ -156,9 +140,5 @@ EOQ
require_full_window = true
tags = concat(["env:${var.environment}", "type:caas", "provider:kubernetes", "resource:kubernetes-workload", "team:claranet", "created-by:terraform"], var.replica_current_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -28,7 +28,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -12,7 +12,7 @@ resource "datadog_monitor" "ALB_no_healthy_instances" {
) * 100 < 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
warning = var.alb_no_healthy_instances_threshold_warning
}
@ -27,10 +27,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:alb", "team:claranet", "created-by:terraform"], var.alb_no_healthy_instances_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ALB_latency" {
@ -45,7 +41,7 @@ resource "datadog_monitor" "ALB_latency" {
> ${var.latency_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.latency_threshold_critical
warning = var.latency_threshold_warning
}
@ -59,10 +55,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:alb", "team:claranet", "created-by:terraform"], var.latency_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ALB_httpcode_5xx" {
@ -78,7 +70,7 @@ resource "datadog_monitor" "ALB_httpcode_5xx" {
* 100 > ${var.httpcode_alb_5xx_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.httpcode_alb_5xx_threshold_critical
warning = var.httpcode_alb_5xx_threshold_warning
}
@ -92,10 +84,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:alb", "team:claranet", "created-by:terraform"], var.httpcode_alb_5xx_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ALB_httpcode_4xx" {
@ -111,7 +99,7 @@ resource "datadog_monitor" "ALB_httpcode_4xx" {
* 100 > ${var.httpcode_alb_4xx_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.httpcode_alb_4xx_threshold_critical
warning = var.httpcode_alb_4xx_threshold_warning
}
@ -125,10 +113,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:alb", "team:claranet", "created-by:terraform"], var.httpcode_alb_4xx_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ALB_httpcode_target_5xx" {
@ -144,7 +128,7 @@ resource "datadog_monitor" "ALB_httpcode_target_5xx" {
* 100 > ${var.httpcode_target_5xx_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.httpcode_target_5xx_threshold_critical
warning = var.httpcode_target_5xx_threshold_warning
}
@ -158,10 +142,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:alb", "team:claranet", "created-by:terraform"], var.httpcode_target_5xx_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ALB_httpcode_target_4xx" {
@ -177,7 +157,7 @@ resource "datadog_monitor" "ALB_httpcode_target_4xx" {
* 100 > ${var.httpcode_target_4xx_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.httpcode_target_4xx_threshold_critical
warning = var.httpcode_target_4xx_threshold_warning
}
@ -191,9 +171,5 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:alb", "team:claranet", "created-by:terraform"], var.httpcode_target_4xx_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -25,7 +25,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -11,7 +11,7 @@ resource "datadog_monitor" "API_Gateway_latency" {
> ${var.latency_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.latency_threshold_warning
critical = var.latency_threshold_critical
}
@ -25,10 +25,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:apigateway", "team:claranet", "created-by:terraform"], var.latency_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring API Gateway 5xx errors percent
@ -45,7 +41,7 @@ resource "datadog_monitor" "API_http_5xx_errors_count" {
* 100 > ${var.http_5xx_requests_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.http_5xx_requests_threshold_warning
critical = var.http_5xx_requests_threshold_critical
}
@ -59,10 +55,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:apigateway", "team:claranet", "created-by:terraform"], var.http_5xx_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring API Gateway 4xx errors percent
@ -79,7 +71,7 @@ resource "datadog_monitor" "API_http_4xx_errors_count" {
* 100 > ${var.http_4xx_requests_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.http_4xx_requests_threshold_warning
critical = var.http_4xx_requests_threshold_critical
}
@ -93,9 +85,5 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:apigateway", "team:claranet", "created-by:terraform"], var.http_4xx_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -26,7 +26,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -9,7 +9,7 @@ resource "datadog_monitor" "health" {
${var.health_time_aggregator}(${var.health_timeframe}):min:aws.elasticbeanstalk.environment_health${module.filter-tags.query_alert} by {region,environmentname} >= ${var.health_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.health_threshold_critical
warning = var.health_threshold_warning
}
@ -25,10 +25,6 @@ EOQ
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:beanstalk", "team:claranet", "created-by:terraform"], var.health_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "application_latency_p90" {
@ -41,7 +37,7 @@ resource "datadog_monitor" "application_latency_p90" {
${var.application_latency_p90_time_aggregator}(${var.application_latency_p90_timeframe}):min:aws.elasticbeanstalk.application_latency_p_9_0${module.filter-tags-no-host.query_alert} by {region,environmentname} >= ${var.application_latency_p90_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.application_latency_p90_threshold_critical
warning = var.application_latency_p90_threshold_warning
}
@ -56,10 +52,6 @@ EOQ
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:beanstalk", "team:claranet", "created-by:terraform"], var.application_latency_p90_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "application_5xx_error_rate" {
@ -72,7 +64,7 @@ resource "datadog_monitor" "application_5xx_error_rate" {
${var.application_5xx_error_rate_time_aggregator}(${var.application_5xx_error_rate_timeframe}):sum:aws.elasticbeanstalk.application_requests_5xx${module.filter-tags-no-host.query_alert} by {region,environmentname}.as_rate() / sum:aws.elasticbeanstalk.application_requests_total${module.filter-tags-no-host.query_alert} by {region,environmentname}.as_rate() * 100 > ${var.application_5xx_error_rate_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.application_5xx_error_rate_threshold_critical
warning = var.application_5xx_error_rate_threshold_warning
}
@ -87,10 +79,6 @@ EOQ
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:beanstalk", "team:claranet", "created-by:terraform"], var.application_5xx_error_rate_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "root_filesystem_usage" {
@ -103,7 +91,7 @@ resource "datadog_monitor" "root_filesystem_usage" {
${var.root_filesystem_usage_aggregator}(${var.root_filesystem_usage_timeframe}):min:aws.elasticbeanstalk.root_filesystem_util${module.filter-tags.query_alert} by {region,environmentname,host} > ${var.root_filesystem_usage_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.root_filesystem_usage_threshold_critical
warning = var.root_filesystem_usage_threshold_warning
}
@ -118,9 +106,5 @@ EOQ
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:beanstalk", "team:claranet", "created-by:terraform"], var.root_filesystem_usage_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -25,7 +25,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -12,7 +12,7 @@ resource "datadog_monitor" "service_cpu_utilization" {
EOQ
thresholds = {
monitor_thresholds {
critical = var.service_cpu_utilization_threshold_critical
warning = var.service_cpu_utilization_threshold_warning
}
@ -28,10 +28,6 @@ EOQ
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:ecs", "team:claranet", "created-by:terraform", "category:service"], var.service_cpu_utilization_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "service_memory_utilization" {
@ -46,7 +42,7 @@ resource "datadog_monitor" "service_memory_utilization" {
> ${var.service_memory_utilization_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.service_memory_utilization_threshold_critical
warning = var.service_memory_utilization_threshold_warning
}
@ -62,10 +58,6 @@ EOQ
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:ecs", "team:claranet", "created-by:terraform", "category:service"], var.service_memory_utilization_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "service_missing_tasks" {
@ -81,7 +73,7 @@ resource "datadog_monitor" "service_missing_tasks" {
EOQ
thresholds = {
monitor_thresholds {
critical = var.service_missing_tasks_threshold_critical
warning = var.service_missing_tasks_threshold_warning
}
@ -97,8 +89,4 @@ EOQ
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:ecs", "team:claranet", "created-by:terraform", "category:service"], var.service_missing_tasks_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -25,7 +25,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -10,7 +10,7 @@ resource "datadog_monitor" "ecs_agent_status" {
EOQ
thresholds = {
monitor_thresholds {
warning = var.agent_status_threshold_warning
critical = 5
}
@ -27,10 +27,6 @@ EOQ
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:ecs", "team:claranet", "created-by:terraform", "category:agent"], var.agent_status_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "cluster_cpu_utilization" {
@ -46,7 +42,7 @@ resource "datadog_monitor" "cluster_cpu_utilization" {
EOQ
thresholds = {
monitor_thresholds {
critical = var.cluster_cpu_utilization_threshold_critical
warning = var.cluster_cpu_utilization_threshold_warning
}
@ -63,10 +59,6 @@ EOQ
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:ecs", "team:claranet", "created-by:terraform", "category:cluster"], var.cluster_cpu_utilization_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "cluster_memory_reservation" {
@ -82,7 +74,7 @@ resource "datadog_monitor" "cluster_memory_reservation" {
EOQ
thresholds = {
monitor_thresholds {
critical = var.cluster_memory_reservation_threshold_critical
warning = var.cluster_memory_reservation_threshold_warning
}
@ -98,8 +90,4 @@ EOQ
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:ecs", "team:claranet", "created-by:terraform", "category:cluster"], var.cluster_memory_reservation_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -25,7 +25,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -10,7 +10,7 @@ resource "datadog_monitor" "service_check" {
"fargate_check"${module.filter-tags.service_check}.last(6).count_by_status()
EOQ
thresholds = {
monitor_thresholds {
warning = var.service_check_threshold_warning
critical = 5
}
@ -27,12 +27,7 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:ecs_fargate", "team:claranet", "created-by:terraform", "category:service"], var.service_check_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "cpu_utilization" {
@ -48,7 +43,7 @@ ${var.cpu_utilization_time_aggregator}(${var.cpu_utilization_timeframe}):
EOQ
thresholds = {
monitor_thresholds {
critical = var.cpu_utilization_threshold_critical
warning = var.cpu_utilization_threshold_warning
}
@ -65,10 +60,6 @@ EOQ
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:ecs_fargate", "team:claranet", "created-by:terraform"], var.cpu_utilization_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "memory_utilization" {
@ -86,7 +77,7 @@ ${var.memory_utilization_time_aggregator}(${var.memory_utilization_timeframe}):
EOQ
thresholds = {
monitor_thresholds {
critical = var.memory_utilization_threshold_critical
warning = var.memory_utilization_threshold_warning
}
@ -103,8 +94,4 @@ EOQ
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:ecs_fargate", "team:claranet", "created-by:terraform"], var.memory_utilization_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -28,7 +28,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -10,7 +10,7 @@ resource "datadog_monitor" "elasticache_eviction" {
) > ${var.eviction_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.eviction_threshold_warning
critical = var.eviction_threshold_critical
}
@ -26,10 +26,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache", "team:claranet", "created-by:terraform"], var.eviction_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "elasticache_max_connection" {
@ -56,10 +52,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache", "team:claranet", "created-by:terraform"], var.max_connection_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "elasticache_no_connection" {
@ -85,10 +77,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache", "team:claranet", "created-by:terraform"], var.no_connection_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "elasticache_swap" {
@ -103,7 +91,7 @@ resource "datadog_monitor" "elasticache_swap" {
) > ${var.swap_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.swap_threshold_warning
critical = var.swap_threshold_critical
}
@ -119,10 +107,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache", "team:claranet", "created-by:terraform"], var.swap_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "elasticache_free_memory" {
@ -137,7 +121,7 @@ resource "datadog_monitor" "elasticache_free_memory" {
< ${var.free_memory_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.free_memory_threshold_warning
critical = var.free_memory_threshold_critical
}
@ -153,10 +137,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache", "team:claranet", "created-by:terraform"], var.free_memory_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "elasticache_eviction_growing" {
@ -171,7 +151,7 @@ resource "datadog_monitor" "elasticache_eviction_growing" {
> ${var.eviction_growing_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.eviction_growing_threshold_warning
critical = var.eviction_growing_threshold_critical
}
@ -187,9 +167,5 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache", "team:claranet", "created-by:terraform"], var.eviction_growing_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -24,7 +24,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -12,7 +12,7 @@ resource "datadog_monitor" "memcached_get_hits" {
) * 100 < ${var.get_hits_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.get_hits_threshold_warning
critical = var.get_hits_threshold_critical
}
@ -28,10 +28,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache-memcached", "team:claranet", "created-by:terraform", "engine:memcached"], var.get_hits_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "memcached_cpu_high" {
@ -46,7 +42,7 @@ resource "datadog_monitor" "memcached_cpu_high" {
) > ${var.cpu_high_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.cpu_high_threshold_warning
critical = var.cpu_high_threshold_critical
}
@ -63,9 +59,5 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache-memcached", "team:claranet", "created-by:terraform", "engine:memcached"], var.cpu_high_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -26,7 +26,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -12,7 +12,7 @@ resource "datadog_monitor" "redis_cache_hits" {
* 100, 100) < ${var.cache_hits_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.cache_hits_threshold_warning
critical = var.cache_hits_threshold_critical
}
@ -28,10 +28,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache-redis", "team:claranet", "created-by:terraform", "engine:redis"], var.cache_hits_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "redis_cpu_high" {
@ -58,10 +54,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache-redis", "team:claranet", "created-by:terraform", "engine:redis"], var.cpu_high_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "redis_replication_lag" {
@ -76,7 +68,7 @@ resource "datadog_monitor" "redis_replication_lag" {
) > ${var.replication_lag_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.replication_lag_threshold_warning
critical = var.replication_lag_threshold_critical
}
@ -92,10 +84,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache-redis", "team:claranet", "created-by:terraform", "engine:redis"], var.replication_lag_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "redis_commands" {
@ -122,9 +110,5 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticache-redis", "team:claranet", "created-by:terraform", "engine:redis"], var.commands_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -27,7 +27,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -16,7 +16,7 @@ resource "datadog_monitor" "es_cluster_status" {
) >= 2
EOQ
thresholds = {
monitor_thresholds {
warning = 1
critical = 2
}
@ -33,10 +33,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.es_cluster_status_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
### Elasticsearch cluster free storage space monitor ###
@ -53,7 +49,7 @@ resource "datadog_monitor" "es_free_space_low" {
) < ${var.diskspace_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.diskspace_threshold_warning
critical = var.diskspace_threshold_critical
}
@ -69,10 +65,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.diskspace_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
### Elasticsearch cluster CPU monitor ###
@ -88,7 +80,7 @@ resource "datadog_monitor" "es_cpu_90_15min" {
) > ${var.cpu_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.cpu_threshold_warning
critical = var.cpu_threshold_critical
}
@ -104,9 +96,5 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.cpu_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -28,7 +28,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -12,7 +12,7 @@ resource "datadog_monitor" "ELB_no_healthy_instances" {
) * 100 < 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
warning = var.elb_no_healthy_instance_threshold_warning
}
@ -29,10 +29,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elb", "team:claranet", "created-by:terraform"], var.elb_no_healthy_instance_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ELB_too_much_4xx" {
@ -48,7 +44,7 @@ resource "datadog_monitor" "ELB_too_much_4xx" {
* 100 > ${var.elb_4xx_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.elb_4xx_threshold_warning
critical = var.elb_4xx_threshold_critical
}
@ -64,10 +60,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elb", "team:claranet", "created-by:terraform"], var.elb_4xx_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ELB_too_much_5xx" {
@ -83,7 +75,7 @@ resource "datadog_monitor" "ELB_too_much_5xx" {
* 100 > ${var.elb_5xx_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.elb_5xx_threshold_warning
critical = var.elb_5xx_threshold_critical
}
@ -99,10 +91,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elb", "team:claranet", "created-by:terraform"], var.elb_5xx_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ELB_too_much_4xx_backend" {
@ -118,7 +106,7 @@ resource "datadog_monitor" "ELB_too_much_4xx_backend" {
* 100 > ${var.elb_backend_4xx_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.elb_backend_4xx_threshold_warning
critical = var.elb_backend_4xx_threshold_critical
}
@ -134,10 +122,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elb", "team:claranet", "created-by:terraform"], var.elb_backend_4xx_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ELB_too_much_5xx_backend" {
@ -153,7 +137,7 @@ resource "datadog_monitor" "ELB_too_much_5xx_backend" {
* 100 > ${var.elb_backend_5xx_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.elb_backend_5xx_threshold_warning
critical = var.elb_backend_5xx_threshold_critical
}
@ -169,10 +153,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elb", "team:claranet", "created-by:terraform"], var.elb_backend_5xx_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "ELB_backend_latency" {
@ -187,7 +167,7 @@ resource "datadog_monitor" "ELB_backend_latency" {
> ${var.elb_backend_latency_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.elb_backend_latency_warning
critical = var.elb_backend_latency_critical
}
@ -203,9 +183,5 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:elb", "team:claranet", "created-by:terraform"], var.elb_backend_latency_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -23,7 +23,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -11,7 +11,7 @@ resource "datadog_monitor" "firehose_incoming_records" {
) <= 0
EOQ
thresholds = {
monitor_thresholds {
critical = 0
}
@ -27,9 +27,5 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:kinesis-firehose", "team:claranet", "created-by:terraform"], var.incoming_records_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -26,7 +26,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -18,7 +18,7 @@ resource "datadog_monitor" "pct_errors" {
evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
thresholds = {
monitor_thresholds {
critical = var.pct_errors_threshold_critical
warning = var.pct_errors_threshold_warning
}
@ -32,10 +32,6 @@ resource "datadog_monitor" "pct_errors" {
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:lambda", "team:claranet", "created-by:terraform"], var.pct_errors_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Errors Absolute Value
@ -54,7 +50,7 @@ resource "datadog_monitor" "errors" {
evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
thresholds = {
monitor_thresholds {
critical = var.errors_threshold_critical
warning = var.errors_threshold_warning
}
@ -68,10 +64,6 @@ resource "datadog_monitor" "errors" {
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:lambda", "team:claranet", "created-by:terraform"], var.errors_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Throttles
@ -90,7 +82,7 @@ resource "datadog_monitor" "throttles" {
evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
thresholds = {
monitor_thresholds {
critical = var.throttles_threshold_critical
warning = var.throttles_threshold_warning
}
@ -104,10 +96,6 @@ resource "datadog_monitor" "throttles" {
locked = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:lambda", "team:claranet", "created-by:terraform"], var.throttles_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# INVOCATIONS
@ -126,7 +114,7 @@ resource "datadog_monitor" "invocations" {
evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
thresholds = {
monitor_thresholds {
critical = var.invocations_threshold_critical
warning = var.invocations_threshold_warning
}
@ -143,8 +131,4 @@ resource "datadog_monitor" "invocations" {
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:lambda", "team:claranet", "created-by:terraform"], var.invocations_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -23,7 +23,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -12,7 +12,7 @@ resource "datadog_monitor" "NLB_no_healthy_instances" {
) * 100 < 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
warning = var.nlb_no_healthy_instances_threshold_warning
}
@ -27,9 +27,5 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:nlb", "team:claranet", "created-by:terraform"], var.nlb_no_healthy_instances_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -23,7 +23,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -11,7 +11,7 @@ resource "datadog_monitor" "rds_aurora_mysql_replica_lag" {
) > ${var.aurora_replicalag_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.aurora_replicalag_threshold_warning
critical = var.aurora_replicalag_threshold_critical
}
@ -27,8 +27,4 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:rds-aurora-mysql", "team:claranet", "created-by:terraform"], var.aurora_replicalag_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -23,7 +23,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -11,7 +11,7 @@ resource "datadog_monitor" "rds_aurora_postgresql_replica_lag" {
) > ${var.aurora_replicalag_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.aurora_replicalag_threshold_warning
critical = var.aurora_replicalag_threshold_critical
}
@ -27,8 +27,4 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:rds-aurora-postgresql", "team:claranet", "created-by:terraform"], var.aurora_replicalag_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -25,7 +25,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -11,7 +11,7 @@ resource "datadog_monitor" "rds_cpu_90_15min" {
) > ${var.cpu_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.cpu_threshold_warning
critical = var.cpu_threshold_critical
}
@ -26,10 +26,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:rds", "team:claranet", "created-by:terraform"], var.cpu_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
### RDS instance free space monitor ###
@ -46,7 +42,7 @@ resource "datadog_monitor" "rds_free_space_low" {
) < ${var.diskspace_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.diskspace_threshold_warning
critical = var.diskspace_threshold_critical
}
@ -62,10 +58,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:rds", "team:claranet", "created-by:terraform"], var.diskspace_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
### RDS Replica Lag monitor ###
@ -81,7 +73,7 @@ resource "datadog_monitor" "rds_replica_lag" {
) > ${var.replicalag_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.replicalag_threshold_warning
critical = var.replicalag_threshold_critical
}
@ -96,8 +88,4 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:rds", "team:claranet", "created-by:terraform"], var.replicalag_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -24,7 +24,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -11,7 +11,7 @@ resource "datadog_monitor" "visible_messages" {
> ${var.visible_messages_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.visible_messages_threshold_critical
warning = var.visible_messages_threshold_warning
}
@ -27,10 +27,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:sqs", "team:claranet", "created-by:terraform"], var.visible_messages_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Age of the Oldest Message
@ -46,7 +42,7 @@ resource "datadog_monitor" "age_of_oldest_message" {
> ${var.age_of_oldest_message_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.age_of_oldest_message_threshold_critical
warning = var.age_of_oldest_message_threshold_warning
}
@ -62,8 +58,4 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:sqs", "team:claranet", "created-by:terraform"], var.age_of_oldest_message_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -23,7 +23,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -21,9 +21,5 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:vpn", "team:claranet", "created-by:terraform"], var.vpn_status_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -27,7 +27,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -8,7 +8,7 @@ resource "datadog_monitor" "apimgt_status" {
${var.status_time_aggregator}(${var.status_timeframe}):avg:azure.apimanagement_service.status${module.filter-tags.query_alert} by {resource_group,region,name} < 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
}
@ -24,10 +24,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:apimanagement", "team:claranet", "created-by:terraform"], var.status_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "apimgt_failed_requests" {
@ -43,7 +39,7 @@ resource "datadog_monitor" "apimgt_failed_requests" {
) * 100 > ${var.failed_requests_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.failed_requests_threshold_critical
warning = var.failed_requests_threshold_warning
}
@ -59,10 +55,6 @@ EOQ
renotify_interval = 0
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:apimanagement", "team:claranet", "created-by:terraform"], var.failed_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "apimgt_other_requests" {
@ -78,7 +70,7 @@ resource "datadog_monitor" "apimgt_other_requests" {
) * 100 > ${var.other_requests_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.other_requests_threshold_critical
warning = var.other_requests_threshold_warning
}
@ -94,10 +86,6 @@ EOQ
renotify_interval = 0
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:apimanagement", "team:claranet", "created-by:terraform"], var.other_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "apimgt_unauthorized_requests" {
@ -113,7 +101,7 @@ resource "datadog_monitor" "apimgt_unauthorized_requests" {
) * 100 > ${var.unauthorized_requests_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.unauthorized_requests_threshold_critical
warning = var.unauthorized_requests_threshold_warning
}
@ -129,10 +117,6 @@ EOQ
renotify_interval = 0
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:apimanagement", "team:claranet", "created-by:terraform"], var.unauthorized_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "apimgt_successful_requests" {
@ -150,7 +134,7 @@ resource "datadog_monitor" "apimgt_successful_requests" {
, 100) < ${var.successful_requests_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.successful_requests_threshold_critical
warning = var.successful_requests_threshold_warning
}
@ -166,9 +150,5 @@ EOQ
renotify_interval = 0
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:apimanagement", "team:claranet", "created-by:terraform"], var.successful_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -31,7 +31,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -23,10 +23,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-gateway", "team:claranet", "created-by:terraform"], var.status_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Gateway total_requests
@ -52,10 +48,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-gateway", "team:claranet", "created-by:terraform"], var.total_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Gateway backend_connect_time
@ -70,7 +62,7 @@ resource "datadog_monitor" "appgateway_backend_connect_time" {
sum:azure.network_applicationgateways.backend_connect_time${module.filter-tags.query_alert} by {resource_group,region,name,backendhttpsetting,backendpool,backendserver} > ${var.appgateway_backend_connect_time_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.appgateway_backend_connect_time_threshold_critical
warning = var.appgateway_backend_connect_time_threshold_warning
}
@ -86,10 +78,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-gateway", "team:claranet", "created-by:terraform"], var.appgateway_backend_connect_time_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Gateway failed_requests
@ -106,7 +94,7 @@ resource "datadog_monitor" "appgateway_failed_requests" {
* 100),0) > ${var.appgateway_failed_requests_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.appgateway_failed_requests_threshold_critical
warning = var.appgateway_failed_requests_threshold_warning
}
@ -122,10 +110,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-gateway", "team:claranet", "created-by:terraform"], var.appgateway_failed_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Gateway unhealthy_host_ratio
@ -143,7 +127,7 @@ resource "datadog_monitor" "appgateway_healthy_host_ratio" {
* 100 > ${var.appgateway_unhealthy_host_ratio_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.appgateway_unhealthy_host_ratio_threshold_critical
warning = var.appgateway_unhealthy_host_ratio_threshold_warning
}
@ -158,10 +142,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-gateway", "team:claranet", "created-by:terraform"], var.appgateway_unhealthy_host_ratio_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Gateway response_status 4xx
@ -179,7 +159,7 @@ resource "datadog_monitor" "appgateway_http_4xx_errors" {
EOQ
thresholds = {
monitor_thresholds {
warning = var.appgateway_http_4xx_errors_threshold_warning
critical = var.appgateway_http_4xx_errors_threshold_critical
}
@ -193,10 +173,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-gateway", "team:claranet", "created-by:terraform"], var.appgateway_http_4xx_errors_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Gateway response_status 5xx
@ -213,7 +189,7 @@ resource "datadog_monitor" "appgateway_http_5xx_errors" {
* 100),0) > ${var.appgateway_http_5xx_errors_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.appgateway_http_5xx_errors_threshold_warning
critical = var.appgateway_http_5xx_errors_threshold_critical
}
@ -227,10 +203,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-gateway", "team:claranet", "created-by:terraform"], var.appgateway_http_5xx_errors_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Gateway Backend response_status 4xx
@ -248,7 +220,7 @@ resource "datadog_monitor" "appgateway_backend_http_4xx_errors" {
EOQ
thresholds = {
monitor_thresholds {
warning = var.appgateway_backend_http_4xx_errors_threshold_warning
critical = var.appgateway_backend_http_4xx_errors_threshold_critical
}
@ -262,10 +234,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-gateway", "team:claranet", "created-by:terraform"], var.appgateway_backend_http_4xx_errors_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Gateway Backend response_status 5xx
@ -282,7 +250,7 @@ resource "datadog_monitor" "appgateway_backend_http_5xx_errors" {
* 100),0) > ${var.appgateway_backend_http_5xx_errors_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.appgateway_backend_http_5xx_errors_threshold_warning
critical = var.appgateway_backend_http_5xx_errors_threshold_critical
}
@ -296,8 +264,4 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-gateway", "team:claranet", "created-by:terraform"], var.appgateway_backend_http_5xx_errors_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -28,7 +28,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -11,7 +11,7 @@ resource "datadog_monitor" "appservices_response_time" {
) > ${var.response_time_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.response_time_threshold_warning
critical = var.response_time_threshold_critical
}
@ -25,10 +25,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-services", "team:claranet", "created-by:terraform"], var.response_time_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Services memory usage
@ -44,7 +40,7 @@ resource "datadog_monitor" "appservices_memory_usage_count" {
) > ${var.memory_usage_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.memory_usage_threshold_warning
critical = var.memory_usage_threshold_critical
}
@ -58,10 +54,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-services", "team:claranet", "created-by:terraform"], var.memory_usage_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Services 5xx errors percent
@ -78,7 +70,7 @@ resource "datadog_monitor" "appservices_http_5xx_errors_count" {
) * 100 > ${var.http_5xx_requests_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.http_5xx_requests_threshold_warning
critical = var.http_5xx_requests_threshold_critical
}
@ -92,10 +84,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-services", "team:claranet", "created-by:terraform"], var.http_5xx_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Services 4xx errors percent
@ -112,7 +100,7 @@ resource "datadog_monitor" "appservices_http_4xx_errors_count" {
) * 100 > ${var.http_4xx_requests_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.http_4xx_requests_threshold_warning
critical = var.http_4xx_requests_threshold_critical
}
@ -126,10 +114,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-services", "team:claranet", "created-by:terraform"], var.http_4xx_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Services HTTP 2xx & 3xx status pages percent
@ -148,7 +132,7 @@ resource "datadog_monitor" "appservices_http_success_status_rate" {
) * 100, 100) < ${var.http_successful_requests_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.http_successful_requests_threshold_warning
critical = var.http_successful_requests_threshold_critical
}
@ -162,10 +146,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-services", "team:claranet", "created-by:terraform"], var.http_successful_requests_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring App Services status
@ -179,7 +159,7 @@ resource "datadog_monitor" "appservices_status" {
${var.status_time_aggregator}(${var.status_timeframe}):avg:azure.app_services.status${module.filter-tags.query_alert} by {resource_group,region,name} < 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
}
@ -193,8 +173,5 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:app-services", "team:claranet", "created-by:terraform"], var.status_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -24,7 +24,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -11,7 +11,7 @@ resource "datadog_monitor" "azure_search_latency" {
) > ${var.latency_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.latency_threshold_warning
critical = var.latency_threshold_critical
}
@ -26,10 +26,6 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:azure-search", "team:claranet", "created-by:terraform"], var.latency_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
# Monitoring Azure Search throttled queries
@ -45,7 +41,7 @@ resource "datadog_monitor" "azure_search_throttled_queries_rate" {
) > ${var.throttled_queries_rate_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
warning = var.throttled_queries_rate_threshold_warning
critical = var.throttled_queries_rate_threshold_critical
}
@ -59,9 +55,5 @@ EOQ
include_tags = true
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:azure-search", "team:claranet", "created-by:terraform"], var.throttled_queries_rate_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -26,7 +26,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -10,7 +10,7 @@ resource "datadog_monitor" "cosmos_db_status" {
< 1
EOQ
thresholds = {
monitor_thresholds {
critical = 1
}
@ -26,10 +26,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:cosmos_db", "team:claranet", "created-by:terraform"], var.status_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "cosmos_db_4xx_requests" {
@ -55,7 +51,7 @@ resource "datadog_monitor" "cosmos_db_4xx_requests" {
, 0) * 100 > ${var.cosmos_db_4xx_request_rate_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.cosmos_db_4xx_request_rate_threshold_critical
warning = var.cosmos_db_4xx_request_rate_threshold_warning
}
@ -71,10 +67,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:cosmos_db", "team:claranet", "created-by:terraform"], var.cosmos_db_4xx_request_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "cosmos_db_5xx_requests" {
@ -91,7 +83,7 @@ resource "datadog_monitor" "cosmos_db_5xx_requests" {
, 0) * 100 > ${var.cosmos_db_5xx_request_rate_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.cosmos_db_5xx_request_rate_threshold_critical
warning = var.cosmos_db_5xx_request_rate_threshold_warning
}
@ -107,10 +99,6 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:cosmos_db", "team:claranet", "created-by:terraform"], var.cosmos_db_5xx_request_rate_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}
resource "datadog_monitor" "cosmos_db_scaling" {
@ -127,7 +115,7 @@ resource "datadog_monitor" "cosmos_db_scaling" {
, 0) * 100 > ${var.cosmos_db_scaling_error_rate_threshold_critical}
EOQ
thresholds = {
monitor_thresholds {
critical = var.cosmos_db_scaling_error_rate_threshold_critical
warning = var.cosmos_db_scaling_error_rate_threshold_warning
}
@ -143,9 +131,5 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:cosmos_db", "team:claranet", "created-by:terraform"], var.cosmos_db_scaling_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

View File

@ -1,8 +1,9 @@
terraform {
required_providers {
datadog = {
source = "terraform-providers/datadog"
source = "DataDog/datadog"
version = ">= 3.1.0"
}
}
required_version = ">= 0.12.26"
required_version = ">= 0.12.31"
}

View File

@ -23,7 +23,7 @@ Creates DataDog monitors with the following checks:
| Name | Version |
|------|---------|
| terraform | >= 0.12.26 |
| terraform | >= 0.12.31 |
## Inputs

View File

@ -22,9 +22,5 @@ EOQ
require_full_window = false
tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:datalakestore", "team:claranet", "created-by:terraform"], var.status_extra_tags)
lifecycle {
ignore_changes = [silenced]
}
}

Some files were not shown because too many files have changed in this diff Show More