diff --git a/caas/kubernetes/ark/monitors-ark.tf b/caas/kubernetes/ark/monitors-ark.tf index 1e91228..5f19039 100644 --- a/caas/kubernetes/ark/monitors-ark.tf +++ b/caas/kubernetes/ark/monitors-ark.tf @@ -26,5 +26,9 @@ 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"] + } } diff --git a/caas/kubernetes/cluster/monitors-k8s-cluster.tf b/caas/kubernetes/cluster/monitors-k8s-cluster.tf index f6f9406..8295e54 100644 --- a/caas/kubernetes/cluster/monitors-k8s-cluster.tf +++ b/caas/kubernetes/cluster/monitors-k8s-cluster.tf @@ -24,5 +24,9 @@ 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"] + } } diff --git a/caas/kubernetes/ingress/vts/monitors-ingress.tf b/caas/kubernetes/ingress/vts/monitors-ingress.tf index 811a129..68471c6 100644 --- a/caas/kubernetes/ingress/vts/monitors-ingress.tf +++ b/caas/kubernetes/ingress/vts/monitors-ingress.tf @@ -27,6 +27,10 @@ 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" { @@ -58,5 +62,9 @@ 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"] + } } diff --git a/caas/kubernetes/node/monitors-k8s-node.tf b/caas/kubernetes/node/monitors-k8s-node.tf index b60f729..16f1f19 100644 --- a/caas/kubernetes/node/monitors-k8s-node.tf +++ b/caas/kubernetes/node/monitors-k8s-node.tf @@ -23,6 +23,10 @@ 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" { @@ -50,6 +54,10 @@ 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" { @@ -77,6 +85,10 @@ 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" { @@ -104,6 +116,10 @@ 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" { @@ -131,6 +147,10 @@ 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" { @@ -158,6 +178,10 @@ 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" { @@ -179,6 +203,10 @@ 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" { @@ -208,6 +236,10 @@ 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" { @@ -239,6 +271,10 @@ 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" { @@ -270,5 +306,9 @@ 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"] + } } diff --git a/caas/kubernetes/pod/monitors-k8s-pod.tf b/caas/kubernetes/pod/monitors-k8s-pod.tf index e67489b..b490bfd 100644 --- a/caas/kubernetes/pod/monitors-k8s-pod.tf +++ b/caas/kubernetes/pod/monitors-k8s-pod.tf @@ -25,6 +25,10 @@ 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" { @@ -55,6 +59,10 @@ 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" { @@ -85,5 +93,9 @@ 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"] + } } diff --git a/caas/kubernetes/workload/monitors-k8s-workload.tf b/caas/kubernetes/workload/monitors-k8s-workload.tf index 60308b8..326722d 100644 --- a/caas/kubernetes/workload/monitors-k8s-workload.tf +++ b/caas/kubernetes/workload/monitors-k8s-workload.tf @@ -23,6 +23,10 @@ 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" { @@ -50,6 +54,10 @@ 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" { @@ -80,6 +88,10 @@ 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" { @@ -110,6 +122,10 @@ 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" { @@ -140,5 +156,9 @@ 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"] + } } diff --git a/cloud/aws/alb/monitors-alb.tf b/cloud/aws/alb/monitors-alb.tf index 6659211..8c215d6 100644 --- a/cloud/aws/alb/monitors-alb.tf +++ b/cloud/aws/alb/monitors-alb.tf @@ -26,6 +26,10 @@ 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" { @@ -54,6 +58,10 @@ 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" { @@ -83,6 +91,10 @@ 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" { @@ -112,6 +124,10 @@ 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" { @@ -141,6 +157,10 @@ 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" { @@ -170,5 +190,9 @@ 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"] + } } diff --git a/cloud/aws/apigateway/monitors-api.tf b/cloud/aws/apigateway/monitors-api.tf index d318f81..1ae0aea 100644 --- a/cloud/aws/apigateway/monitors-api.tf +++ b/cloud/aws/apigateway/monitors-api.tf @@ -25,6 +25,10 @@ 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 @@ -55,6 +59,10 @@ 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 @@ -85,5 +93,9 @@ 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"] + } } diff --git a/cloud/aws/elasticache/common/monitors-elasticache.tf b/cloud/aws/elasticache/common/monitors-elasticache.tf index c59fb54..887e158 100644 --- a/cloud/aws/elasticache/common/monitors-elasticache.tf +++ b/cloud/aws/elasticache/common/monitors-elasticache.tf @@ -26,6 +26,10 @@ 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" { @@ -51,6 +55,10 @@ 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" { @@ -76,6 +84,10 @@ 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" { @@ -106,6 +118,10 @@ 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" { @@ -136,6 +152,10 @@ 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" { @@ -166,5 +186,9 @@ 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"] + } } diff --git a/cloud/aws/elasticache/memcached/monitors-memcached.tf b/cloud/aws/elasticache/memcached/monitors-memcached.tf index 4dcb3d0..84b3b32 100644 --- a/cloud/aws/elasticache/memcached/monitors-memcached.tf +++ b/cloud/aws/elasticache/memcached/monitors-memcached.tf @@ -28,6 +28,10 @@ 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" { @@ -58,5 +62,9 @@ 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"] + } } diff --git a/cloud/aws/elasticache/redis/monitors-redis.tf b/cloud/aws/elasticache/redis/monitors-redis.tf index c3bf595..7d5b170 100644 --- a/cloud/aws/elasticache/redis/monitors-redis.tf +++ b/cloud/aws/elasticache/redis/monitors-redis.tf @@ -28,6 +28,10 @@ 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" { @@ -53,6 +57,10 @@ 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" { @@ -83,6 +91,10 @@ 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" { @@ -109,5 +121,9 @@ 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"] + } } diff --git a/cloud/aws/elasticsearch/monitors-elasticsearch.tf b/cloud/aws/elasticsearch/monitors-elasticsearch.tf index fa68b87..280e0a0 100644 --- a/cloud/aws/elasticsearch/monitors-elasticsearch.tf +++ b/cloud/aws/elasticsearch/monitors-elasticsearch.tf @@ -32,6 +32,10 @@ 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 ### @@ -64,6 +68,10 @@ 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 ### @@ -95,5 +103,9 @@ 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"] + } } diff --git a/cloud/aws/elb/monitors-elb.tf b/cloud/aws/elb/monitors-elb.tf index aca05f2..9b82f7a 100644 --- a/cloud/aws/elb/monitors-elb.tf +++ b/cloud/aws/elb/monitors-elb.tf @@ -28,6 +28,10 @@ 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" { @@ -59,6 +63,10 @@ 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" { @@ -90,6 +98,10 @@ 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" { @@ -121,6 +133,10 @@ 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" { @@ -152,6 +168,10 @@ 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" { @@ -182,5 +202,9 @@ 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"] + } } diff --git a/cloud/aws/kinesis-firehose/monitors-kinesis-firehose.tf b/cloud/aws/kinesis-firehose/monitors-kinesis-firehose.tf index 41faf73..8fa2721 100644 --- a/cloud/aws/kinesis-firehose/monitors-kinesis-firehose.tf +++ b/cloud/aws/kinesis-firehose/monitors-kinesis-firehose.tf @@ -26,5 +26,9 @@ 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"] + } } 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 9f2555f..c4d63bd 100644 --- a/cloud/aws/rds/aurora/mysql/monitors-rds-aurora-mysql.tf +++ b/cloud/aws/rds/aurora/mysql/monitors-rds-aurora-mysql.tf @@ -26,5 +26,9 @@ 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"] + } } 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 399c0ce..77a2ab3 100644 --- a/cloud/aws/rds/aurora/postgresql/monitors-rds-aurora-postgresql.tf +++ b/cloud/aws/rds/aurora/postgresql/monitors-rds-aurora-postgresql.tf @@ -26,5 +26,9 @@ 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"] + } } diff --git a/cloud/aws/rds/common/monitors-rds-common.tf b/cloud/aws/rds/common/monitors-rds-common.tf index d8c7931..1b3648f 100644 --- a/cloud/aws/rds/common/monitors-rds-common.tf +++ b/cloud/aws/rds/common/monitors-rds-common.tf @@ -26,6 +26,10 @@ 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 ### @@ -57,6 +61,10 @@ 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 ### @@ -87,5 +95,9 @@ 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"] + } } diff --git a/cloud/aws/vpn/monitors-vpn.tf b/cloud/aws/vpn/monitors-vpn.tf index 10480a3..49c0ac8 100644 --- a/cloud/aws/vpn/monitors-vpn.tf +++ b/cloud/aws/vpn/monitors-vpn.tf @@ -20,5 +20,9 @@ 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"] + } } diff --git a/cloud/azure/apimanagement/monitors-azure-apimanagement.tf b/cloud/azure/apimanagement/monitors-azure-apimanagement.tf index 492c25b..9a9829e 100644 --- a/cloud/azure/apimanagement/monitors-azure-apimanagement.tf +++ b/cloud/azure/apimanagement/monitors-azure-apimanagement.tf @@ -23,6 +23,10 @@ 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" { @@ -54,6 +58,10 @@ 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" { @@ -85,6 +93,10 @@ 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" { @@ -116,6 +128,10 @@ 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" { @@ -149,5 +165,9 @@ 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"] + } } diff --git a/cloud/azure/app-services/monitors-app_services.tf b/cloud/azure/app-services/monitors-app_services.tf index cc80eed..c97ff00 100644 --- a/cloud/azure/app-services/monitors-app_services.tf +++ b/cloud/azure/app-services/monitors-app_services.tf @@ -25,6 +25,10 @@ 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 @@ -54,6 +58,10 @@ 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 @@ -84,6 +92,10 @@ 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 @@ -114,6 +126,10 @@ 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 @@ -146,6 +162,10 @@ 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 @@ -171,5 +191,9 @@ EOQ timeout_h = 0 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"] + } } diff --git a/cloud/azure/azure-search/monitors-azure-search.tf b/cloud/azure/azure-search/monitors-azure-search.tf index 36308a9..709dd11 100644 --- a/cloud/azure/azure-search/monitors-azure-search.tf +++ b/cloud/azure/azure-search/monitors-azure-search.tf @@ -25,6 +25,10 @@ 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 @@ -54,5 +58,9 @@ 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"] + } } diff --git a/cloud/azure/cosmosdb/monitors-cosmosdb.tf b/cloud/azure/cosmosdb/monitors-cosmosdb.tf index df3ed86..94227aa 100644 --- a/cloud/azure/cosmosdb/monitors-cosmosdb.tf +++ b/cloud/azure/cosmosdb/monitors-cosmosdb.tf @@ -25,6 +25,10 @@ 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" { @@ -66,6 +70,10 @@ 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" { @@ -98,6 +106,10 @@ 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" { @@ -130,5 +142,9 @@ 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"] + } } diff --git a/cloud/azure/datalakestore/monitors-datalakestore.tf b/cloud/azure/datalakestore/monitors-datalakestore.tf index 2619065..1adebd5 100644 --- a/cloud/azure/datalakestore/monitors-datalakestore.tf +++ b/cloud/azure/datalakestore/monitors-datalakestore.tf @@ -21,5 +21,9 @@ 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"] + } } diff --git a/cloud/azure/eventgrid/monitors-eventgrid.tf b/cloud/azure/eventgrid/monitors-eventgrid.tf index 95148b2..ce355ae 100644 --- a/cloud/azure/eventgrid/monitors-eventgrid.tf +++ b/cloud/azure/eventgrid/monitors-eventgrid.tf @@ -21,6 +21,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:eventgrid", "team:claranet", "created-by:terraform"], var.no_successful_message_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "eventgrid_failed_messages" { @@ -55,6 +59,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:eventgrid", "team:claranet", "created-by:terraform"], var.failed_messages_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "eventgrid_unmatched_events" { @@ -89,5 +97,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:eventgrid", "team:claranet", "created-by:terraform"], var.unmatched_events_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/eventhub/monitors-eventhub.tf b/cloud/azure/eventhub/monitors-eventhub.tf index aa2945b..0ba17bf 100644 --- a/cloud/azure/eventhub/monitors-eventhub.tf +++ b/cloud/azure/eventhub/monitors-eventhub.tf @@ -21,6 +21,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:eventhub", "team:claranet", "created-by:terraform"], var.status_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "eventhub_failed_requests" { @@ -52,6 +56,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:eventhub", "team:claranet", "created-by:terraform"], var.failed_requests_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "eventhub_errors" { @@ -85,5 +93,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:eventhub", "team:claranet", "created-by:terraform"], var.errors_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/functions/monitors-functions.tf b/cloud/azure/functions/monitors-functions.tf index 2d97cce..2c9f4a1 100644 --- a/cloud/azure/functions/monitors-functions.tf +++ b/cloud/azure/functions/monitors-functions.tf @@ -25,6 +25,10 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:azure_functions", "team:claranet", "created-by:terraform"], var.http_5xx_errors_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "function_high_connections_count" { @@ -53,6 +57,10 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:azure_functions", "team:claranet", "created-by:terraform"], var.high_connections_count_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "function_high_threads_count" { @@ -81,5 +89,9 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:azure_functions", "team:claranet", "created-by:terraform"], var.high_threads_count_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/iothubs/monitors-iothubs.tf b/cloud/azure/iothubs/monitors-iothubs.tf index ed1b3ee..1b553f1 100644 --- a/cloud/azure/iothubs/monitors-iothubs.tf +++ b/cloud/azure/iothubs/monitors-iothubs.tf @@ -29,6 +29,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.failed_jobs_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_list_jobs_failed" { @@ -62,6 +66,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.failed_listjobs_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_query_jobs_failed" { @@ -95,6 +103,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.failed_queryjobs_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "status" { @@ -120,6 +132,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.status_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "total_devices" { @@ -145,6 +161,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.total_devices_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_c2d_methods_failed" { @@ -178,6 +198,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.failed_c2d_methods_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_c2d_twin_read_failed" { @@ -211,6 +235,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.failed_c2d_twin_read_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_c2d_twin_update_failed" { @@ -244,6 +272,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.failed_c2d_twin_update_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_d2c_twin_read_failed" { @@ -277,6 +309,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.failed_d2c_twin_read_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_d2c_twin_update_failed" { @@ -310,6 +346,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.failed_d2c_twin_update_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_d2c_telemetry_egress_dropped" { @@ -345,6 +385,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.dropped_d2c_telemetry_egress_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_d2c_telemetry_egress_orphaned" { @@ -380,6 +424,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.orphaned_d2c_telemetry_egress_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_d2c_telemetry_egress_invalid" { @@ -415,6 +463,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.invalid_d2c_telemetry_egress_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "too_many_d2c_telemetry_ingress_nosent" { @@ -442,5 +494,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:iothubs", "team:claranet", "created-by:terraform"], var.too_many_d2c_telemetry_ingress_nosent_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/keyvault/monitors-keyvault.tf b/cloud/azure/keyvault/monitors-keyvault.tf index d814756..6e5abfc 100644 --- a/cloud/azure/keyvault/monitors-keyvault.tf +++ b/cloud/azure/keyvault/monitors-keyvault.tf @@ -21,6 +21,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:keyvault", "team:claranet", "created-by:terraform"], var.status_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "keyvault_api_result" { @@ -54,6 +58,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:keyvault", "team:claranet", "created-by:terraform"], var.api_result_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "keyvault_api_latency" { @@ -84,5 +92,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:keyvault", "team:claranet", "created-by:terraform"], var.api_latency_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/load-balancer/monitors-load-balancer.tf b/cloud/azure/load-balancer/monitors-load-balancer.tf index a782a31..5a66af3 100644 --- a/cloud/azure/load-balancer/monitors-load-balancer.tf +++ b/cloud/azure/load-balancer/monitors-load-balancer.tf @@ -21,5 +21,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:load-balancer", "team:claranet", "created-by:terraform"], var.status_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/mysql/monitors-mysql.tf b/cloud/azure/mysql/monitors-mysql.tf index c8a3399..cbde937 100644 --- a/cloud/azure/mysql/monitors-mysql.tf +++ b/cloud/azure/mysql/monitors-mysql.tf @@ -26,6 +26,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:mysql", "team:claranet", "created-by:terraform"], var.cpu_usage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mysql_free_storage" { @@ -56,6 +60,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:mysql", "team:claranet", "created-by:terraform"], var.free_storage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mysql_io_consumption" { @@ -86,6 +94,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:mysql", "team:claranet", "created-by:terraform"], var.io_consumption_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mysql_memory_usage" { @@ -116,5 +128,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:mysql", "team:claranet", "created-by:terraform"], var.memory_usage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/postgresql/monitors-postegresql.tf b/cloud/azure/postgresql/monitors-postegresql.tf index 97fe59e..dd9ef50 100644 --- a/cloud/azure/postgresql/monitors-postegresql.tf +++ b/cloud/azure/postgresql/monitors-postegresql.tf @@ -26,6 +26,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:postgresql", "team:claranet", "created-by:terraform"], var.cpu_usage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "postgresql_no_connection" { @@ -51,6 +55,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:postgresql", "team:claranet", "created-by:terraform"], var.no_connection_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "postgresql_free_storage" { @@ -81,6 +89,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:postgresql", "team:claranet", "created-by:terraform"], var.free_storage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "postgresql_io_consumption" { @@ -111,6 +123,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:postgresql", "team:claranet", "created-by:terraform"], var.io_consumption_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "postgresql_memory_usage" { @@ -141,5 +157,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:postgresql", "team:claranet", "created-by:terraform"], var.memory_usage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/redis/monitors-azure-redis.tf b/cloud/azure/redis/monitors-azure-redis.tf index d353b62..8916549 100644 --- a/cloud/azure/redis/monitors-azure-redis.tf +++ b/cloud/azure/redis/monitors-azure-redis.tf @@ -21,6 +21,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:redis", "team:claranet", "created-by:terraform"], var.status_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "evictedkeys" { @@ -51,6 +55,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:redis", "team:claranet", "created-by:terraform"], var.evictedkeys_limit_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "percent_processor_time" { @@ -81,6 +89,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:redis", "team:claranet", "created-by:terraform"], var.percent_processor_time_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "server_load" { @@ -111,5 +123,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:redis", "team:claranet", "created-by:terraform"], var.server_load_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/serverfarms/monitors-azure-serverfarms.tf b/cloud/azure/serverfarms/monitors-azure-serverfarms.tf index 493f2a9..01ac7a8 100644 --- a/cloud/azure/serverfarms/monitors-azure-serverfarms.tf +++ b/cloud/azure/serverfarms/monitors-azure-serverfarms.tf @@ -21,6 +21,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:serverfarms", "team:claranet", "created-by:terraform"], var.status_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "cpu_percentage" { @@ -51,6 +55,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:serverfarms", "team:claranet", "created-by:terraform"], var.cpu_percentage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "memory_percentage" { @@ -81,5 +89,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:serverfarms", "team:claranet", "created-by:terraform"], var.memory_percentage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/servicebus/monitors-service-bus.tf b/cloud/azure/servicebus/monitors-service-bus.tf index 31e810c..2185dbd 100644 --- a/cloud/azure/servicebus/monitors-service-bus.tf +++ b/cloud/azure/servicebus/monitors-service-bus.tf @@ -21,6 +21,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:servicebus", "team:claranet", "created-by:terraform"], var.status_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "service_bus_no_active_connections" { @@ -46,6 +50,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:servicebus", "team:claranet", "created-by:terraform"], var.no_active_connections_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "service_bus_user_errors" { @@ -77,6 +85,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:servicebus", "team:claranet", "created-by:terraform"], var.user_errors_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "service_bus_server_errors" { @@ -108,5 +120,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:servicebus", "team:claranet", "created-by:terraform"], var.server_errors_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/sql-database/monitors-sql-database.tf b/cloud/azure/sql-database/monitors-sql-database.tf index 36e1d51..5a46a01 100644 --- a/cloud/azure/sql-database/monitors-sql-database.tf +++ b/cloud/azure/sql-database/monitors-sql-database.tf @@ -21,6 +21,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:sql-database", "team:claranet", "created-by:terraform"], var.status_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "sql-database_cpu" { @@ -51,6 +55,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:sql-database", "team:claranet", "created-by:terraform"], var.cpu_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "sql-database_free_space_low" { @@ -81,6 +89,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:sql-database", "team:claranet", "created-by:terraform"], var.diskspace_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "sql-database_dtu_consumption_high" { @@ -111,6 +123,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:sql-database", "team:claranet", "created-by:terraform"], var.dtu_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "sql-database_deadlocks_count" { @@ -140,5 +156,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:sql-database", "team:claranet", "created-by:terraform"], var.deadlock_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/sql-elasticpool/monitors-sql-elasticpool.tf b/cloud/azure/sql-elasticpool/monitors-sql-elasticpool.tf index 72e0f55..57cd58e 100644 --- a/cloud/azure/sql-elasticpool/monitors-sql-elasticpool.tf +++ b/cloud/azure/sql-elasticpool/monitors-sql-elasticpool.tf @@ -26,6 +26,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:sql-elasticpool", "team:claranet", "created-by:terraform"], var.cpu_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "sql_elasticpool_free_space_low" { @@ -56,6 +60,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:sql-elasticpool", "team:claranet", "created-by:terraform"], var.diskspace_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "sql_elasticpool_dtu_consumption_high" { @@ -86,5 +94,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:sql-elasticpool", "team:claranet", "created-by:terraform"], var.dtu_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/storage/monitors-azure-storage.tf b/cloud/azure/storage/monitors-azure-storage.tf index 8b9f3f6..a3187cd 100644 --- a/cloud/azure/storage/monitors-azure-storage.tf +++ b/cloud/azure/storage/monitors-azure-storage.tf @@ -26,6 +26,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:storage", "team:claranet", "created-by:terraform"], var.availability_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "successful_requests" { @@ -56,6 +60,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:storage", "team:claranet", "created-by:terraform"], var.successful_requests_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "latency" { @@ -86,6 +94,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:storage", "team:claranet", "created-by:terraform"], var.latency_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "timeout_error_requests" { @@ -116,6 +128,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:storage", "team:claranet", "created-by:terraform"], var.timeout_error_requests_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "network_error_requests" { @@ -146,6 +162,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:storage", "team:claranet", "created-by:terraform"], var.network_error_requests_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "throttling_error_requests" { @@ -176,6 +196,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:storage", "team:claranet", "created-by:terraform"], var.throttling_error_requests_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "server_other_error_requests" { @@ -206,6 +230,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:storage", "team:claranet", "created-by:terraform"], var.server_other_error_requests_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "client_other_error_requests" { @@ -236,6 +264,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:storage", "team:claranet", "created-by:terraform"], var.client_other_error_requests_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "authorization_error_requests" { @@ -266,5 +298,9 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:storage", "team:claranet", "created-by:terraform"], var.authorization_error_requests_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/stream-analytics/monitors-stream-analytics.tf b/cloud/azure/stream-analytics/monitors-stream-analytics.tf index 7095349..2684bc7 100644 --- a/cloud/azure/stream-analytics/monitors-stream-analytics.tf +++ b/cloud/azure/stream-analytics/monitors-stream-analytics.tf @@ -21,6 +21,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:stream-analytics", "team:claranet", "created-by:terraform"], var.status_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "su_utilization" { @@ -51,6 +55,10 @@ EOQ } tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:stream-analytics", "team:claranet", "created-by:terraform"], var.su_utilization_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "failed_function_requests" { @@ -82,6 +90,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:stream-analytics", "team:claranet", "created-by:terraform"], var.failed_function_requests_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "conversion_errors" { @@ -112,6 +124,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:stream-analytics", "team:claranet", "created-by:terraform"], var.conversion_errors_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "runtime_errors" { @@ -142,5 +158,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:stream-analytics", "team:claranet", "created-by:terraform"], var.runtime_errors_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/azure/virtual-machine/monitors-virtual-machine.tf b/cloud/azure/virtual-machine/monitors-virtual-machine.tf index f7f7e12..7b5a093 100644 --- a/cloud/azure/virtual-machine/monitors-virtual-machine.tf +++ b/cloud/azure/virtual-machine/monitors-virtual-machine.tf @@ -21,6 +21,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:virtualmachine", "team:claranet", "created-by:terraform"], var.status_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "virtualmachine_cpu_usage" { @@ -51,6 +55,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:virtualmachine", "team:claranet", "created-by:terraform"], var.cpu_usage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "virtualmachine_credit_cpu_remaining_too_low" { @@ -84,5 +92,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:virtualmachine", "team:claranet", "created-by:terraform"], var.cpu_remaining_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/gcp/big-query/monitors-big-query.tf b/cloud/gcp/big-query/monitors-big-query.tf index 2333e60..c25e598 100644 --- a/cloud/gcp/big-query/monitors-big-query.tf +++ b/cloud/gcp/big-query/monitors-big-query.tf @@ -29,6 +29,10 @@ EOQ locked = false tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:big-query", "team:claranet", "created-by:terraform"], var.concurrent_queries_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -62,6 +66,10 @@ EOQ locked = false tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:big-query", "team:claranet", "created-by:terraform"], var.execution_time_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -95,6 +103,10 @@ EOQ locked = false tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:big-query", "team:claranet", "created-by:terraform"], var.scanned_bytes_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -128,6 +140,10 @@ EOQ locked = false tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:big-query", "team:claranet", "created-by:terraform"], var.scanned_bytes_billed_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -161,6 +177,10 @@ EOQ locked = false tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:big-query", "team:claranet", "created-by:terraform"], var.available_slots_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -194,6 +214,10 @@ EOQ locked = false tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:big-query", "team:claranet", "created-by:terraform"], var.stored_bytes_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -227,6 +251,10 @@ EOQ locked = false tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:big-query", "team:claranet", "created-by:terraform"], var.table_count_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -260,6 +288,10 @@ EOQ locked = false tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:big-query", "team:claranet", "created-by:terraform"], var.uploaded_bytes_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -293,5 +325,9 @@ EOQ locked = false tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:big-query", "team:claranet", "created-by:terraform"], var.uploaded_bytes_billed_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } 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 e351769..551d798 100644 --- a/cloud/gcp/cloud-sql/common/monitors-cloud-sql-common.tf +++ b/cloud/gcp/cloud-sql/common/monitors-cloud-sql-common.tf @@ -29,6 +29,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:cloud-sql", "team:claranet", "created-by:terraform"], var.cpu_utilization_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -62,6 +66,10 @@ EOQ 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) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -109,6 +117,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:cloud-sql", "team:claranet", "created-by:terraform"], var.disk_utilization_forecast_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -142,6 +154,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:cloud-sql", "team:claranet", "created-by:terraform"], var.memory_utilization_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -189,6 +205,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:cloud-sql", "team:claranet", "created-by:terraform"], var.memory_utilization_forecast_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -222,5 +242,9 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:cloud-sql", "team:claranet", "created-by:terraform"], var.failover_unavailable_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/gcp/cloud-sql/mysql/monitors-cloudsql-mysql.tf b/cloud/gcp/cloud-sql/mysql/monitors-cloudsql-mysql.tf index 4e3dae5..5945c6f 100644 --- a/cloud/gcp/cloud-sql/mysql/monitors-cloudsql-mysql.tf +++ b/cloud/gcp/cloud-sql/mysql/monitors-cloudsql-mysql.tf @@ -29,5 +29,9 @@ EOQ 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) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/gcp/gce/instance/monitors-gce-instance.tf b/cloud/gcp/gce/instance/monitors-gce-instance.tf index c2ed5cc..1298829 100644 --- a/cloud/gcp/gce/instance/monitors-gce-instance.tf +++ b/cloud/gcp/gce/instance/monitors-gce-instance.tf @@ -29,6 +29,10 @@ EOQ 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) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -68,6 +72,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:gce-instance", "team:claranet", "created-by:terraform"], var.disk_throttled_bps_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -107,5 +115,9 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:gce-instance", "team:claranet", "created-by:terraform"], var.disk_throttled_ops_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/gcp/lb/monitors-lb.tf b/cloud/gcp/lb/monitors-lb.tf index e193b78..6d32e88 100644 --- a/cloud/gcp/lb/monitors-lb.tf +++ b/cloud/gcp/lb/monitors-lb.tf @@ -30,6 +30,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:lb", "team:claranet", "created-by:terraform"], var.error_rate_4xx_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -64,6 +68,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:lb", "team:claranet", "created-by:terraform"], var.error_rate_5xx_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -97,6 +105,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:lb", "team:claranet", "created-by:terraform"], var.backend_latency_service_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -130,6 +142,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:lb", "team:claranet", "created-by:terraform"], var.backend_latency_bucket_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -163,5 +179,9 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:lb", "team:claranet", "created-by:terraform"], var.request_count_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/cloud/gcp/pubsub/monitors-pubsub.tf b/cloud/gcp/pubsub/monitors-pubsub.tf index 7584fb5..90ea6fd 100644 --- a/cloud/gcp/pubsub/monitors-pubsub.tf +++ b/cloud/gcp/pubsub/monitors-pubsub.tf @@ -28,6 +28,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:pubsub", "team:claranet", "created-by:terraform"], var.sending_operations_count_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -61,5 +65,9 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:cloud", "provider:gcp", "resource:pubsub", "team:claranet", "created-by:terraform"], var.unavailable_sending_operations_count_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/database/elasticsearch/monitors-elasticsearch.tf b/database/elasticsearch/monitors-elasticsearch.tf index d5bd81c..6d0b31f 100644 --- a/database/elasticsearch/monitors-elasticsearch.tf +++ b/database/elasticsearch/monitors-elasticsearch.tf @@ -27,6 +27,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.not_responding_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -59,6 +63,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.cluster_status_not_green_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -90,6 +98,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.cluster_initializing_shards_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -121,6 +133,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.cluster_relocating_shards_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -152,6 +168,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.cluster_unassigned_shards_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -187,6 +207,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.node_free_space_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -218,6 +242,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.jvm_heap_memory_usage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -249,6 +277,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.jvm_memory_young_usage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -280,6 +312,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.jvm_memory_old_usage_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -311,6 +347,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.jvm_gc_old_collection_latency_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -342,6 +382,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.jvm_gc_young_collection_latency_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -374,6 +418,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.indexing_latency_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -406,6 +454,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.flush_latency_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -450,6 +502,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.http_connections_anomaly_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -482,6 +538,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.search_query_latency_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -514,6 +574,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.fetch_latency_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -545,6 +609,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.search_query_change_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -576,6 +644,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.fetch_change_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -608,6 +680,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.field_data_evictions_change_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -640,6 +716,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.query_cache_evictions_change_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -672,6 +752,10 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.request_cache_evictions_change_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } # @@ -703,5 +787,9 @@ EOQ notify_no_data = false tags = concat(["env:${var.environment}", "type:database", "provider:elasticsearch", "resource:elasticsearch", "team:claranet", "created-by:terraform"], var.task_time_in_queue_change_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/database/mongodb/monitors-mongo.tf b/database/mongodb/monitors-mongo.tf index 2c92c67..d40d33a 100644 --- a/database/mongodb/monitors-mongo.tf +++ b/database/mongodb/monitors-mongo.tf @@ -18,6 +18,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:database", "provider:mongo", "resource:mongodb", "team:claranet", "created-by:terraform"], var.mongodb_primary_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mongodb_secondary" { @@ -48,6 +52,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:database", "provider:mongo", "resource:mongodb", "team:claranet", "created-by:terraform"], var.mongodb_secondary_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mongodb_server_count" { @@ -77,6 +85,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:database", "provider:mongo", "resource:mongodb", "team:claranet", "created-by:terraform"], var.mongodb_secondary_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mongodb_replication" { @@ -105,5 +117,9 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:database", "provider:mongo", "resource:mongodb", "team:claranet", "created-by:terraform"], var.mongodb_replication_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/database/mysql/monitors-mysql.tf b/database/mysql/monitors-mysql.tf index 34d5697..2699cf0 100644 --- a/database/mysql/monitors-mysql.tf +++ b/database/mysql/monitors-mysql.tf @@ -24,6 +24,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:database", "provider:mysql", "resource:mysql", "team:claranet", "created-by:terraform"], var.mysql_availability_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mysql_connection" { @@ -53,6 +57,10 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:database", "provider:mysql", "resource:mysql", "team:claranet", "created-by:terraform"], var.mysql_connection_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mysql_aborted" { @@ -82,6 +90,10 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:database", "provider:mysql", "resource:mysql", "team:claranet", "created-by:terraform"], var.mysql_aborted_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mysql_slow" { @@ -111,6 +123,10 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:database", "provider:mysql", "resource:mysql", "team:claranet", "created-by:terraform"], var.mysql_slow_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mysql_pool_efficiency" { @@ -140,6 +156,10 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:database", "provider:mysql", "resource:mysql", "team:claranet", "created-by:terraform"], var.mysql_pool_efficiency_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mysql_pool_utilization" { @@ -170,6 +190,10 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:database", "provider:mysql", "resource:mysql", "team:claranet", "created-by:terraform"], var.mysql_pool_utilization_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mysql_threads_anomaly" { @@ -212,6 +236,10 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:database", "provider:mysql", "resource:mysql", "team:claranet", "created-by:terraform"], var.mysql_threads_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "mysql_questions_anomaly" { @@ -254,5 +282,9 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:database", "provider:mysql", "resource:mysql", "team:claranet", "created-by:terraform"], var.mysql_questions_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/database/postgresql/monitors-postgresql.tf b/database/postgresql/monitors-postgresql.tf index f0f91b3..3806469 100644 --- a/database/postgresql/monitors-postgresql.tf +++ b/database/postgresql/monitors-postgresql.tf @@ -24,6 +24,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:database", "provider:postgres", "resource:postgresql", "team:claranet", "created-by:terraform"], var.postgresql_availability_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "postgresql_connection_too_high" { @@ -52,6 +56,10 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:database", "provider:postgres", "resource:postgresql", "team:claranet", "created-by:terraform"], var.postgresql_connection_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "postgresql_too_many_locks" { @@ -80,5 +88,9 @@ EOQ include_tags = true tags = concat(["env:${var.environment}", "type:database", "provider:postgres", "resource:postgresql", "team:claranet", "created-by:terraform"], var.postgresql_lock_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/database/redis/monitors-redis.tf b/database/redis/monitors-redis.tf index 6352db8..f0681b1 100644 --- a/database/redis/monitors-redis.tf +++ b/database/redis/monitors-redis.tf @@ -27,6 +27,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:database", "provider:redisdb", "resource:redis", "team:claranet", "created-by:terraform"], var.not_responding_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "evicted_keys" { @@ -57,6 +61,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:database", "provider:redisdb", "resource:redis", "team:claranet", "created-by:terraform"], var.evictedkeys_change_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "expirations" { @@ -87,6 +95,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:database", "provider:redisdb", "resource:redis", "team:claranet", "created-by:terraform"], var.expirations_rate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "blocked_clients" { @@ -118,6 +130,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:database", "provider:redisdb", "resource:redis", "team:claranet", "created-by:terraform"], var.blocked_clients_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "keyspace_full" { @@ -148,6 +164,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:database", "provider:redisdb", "resource:redis", "team:claranet", "created-by:terraform"], var.keyspace_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "memory_used" { @@ -179,6 +199,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:database", "provider:redisdb", "resource:redis", "team:claranet", "created-by:terraform"], var.mem_used_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "memory_frag" { @@ -209,6 +233,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:database", "provider:redisdb", "resource:redis", "team:claranet", "created-by:terraform"], var.mem_frag_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "rejected_connections" { @@ -239,6 +267,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:database", "provider:redisdb", "resource:redis", "team:claranet", "created-by:terraform"], var.rejected_con_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "latency" { @@ -269,6 +301,10 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:database", "provider:redisdb", "resource:redis", "team:claranet", "created-by:terraform"], var.latency_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "hitrate" { @@ -301,5 +337,9 @@ EOQ require_full_window = false tags = concat(["env:${var.environment}", "type:database", "provider:redisdb", "resource:redis", "team:claranet", "created-by:terraform"], var.hitrate_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/middleware/apache/monitors-apache.tf b/middleware/apache/monitors-apache.tf index b87e43a..7277f29 100644 --- a/middleware/apache/monitors-apache.tf +++ b/middleware/apache/monitors-apache.tf @@ -23,5 +23,9 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:middleware", "provider:apache", "resource:apache", "team:claranet", "created-by:terraform"], var.apache_connect_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/middleware/nginx/monitors-nginx.tf b/middleware/nginx/monitors-nginx.tf index ab00769..89ee208 100644 --- a/middleware/nginx/monitors-nginx.tf +++ b/middleware/nginx/monitors-nginx.tf @@ -24,6 +24,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:middleware", "provider:nginx", "resource:nginx", "team:claranet", "created-by:terraform"], var.nginx_connect_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "datadog_nginx_dropped_connections" { @@ -52,5 +56,9 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:middleware", "provider:nginx", "resource:nginx", "team:claranet", "created-by:terraform"], var.nginx_dropped_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/middleware/php-fpm/monitors-fpm.tf b/middleware/php-fpm/monitors-fpm.tf index 11e6323..b1b7972 100644 --- a/middleware/php-fpm/monitors-fpm.tf +++ b/middleware/php-fpm/monitors-fpm.tf @@ -24,6 +24,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:middleware", "provider:php-fpm", "resource:php-fpm", "team:claranet", "created-by:terraform"], var.php_fpm_connect_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "php_fpm_connect_idle" { @@ -55,5 +59,9 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:middleware", "provider:php-fpm", "resource:php-fpm", "team:claranet", "created-by:terraform"], var.php_fpm_busy_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/system/generic/monitors-system.tf b/system/generic/monitors-system.tf index d61bc0e..bb3e310 100644 --- a/system/generic/monitors-system.tf +++ b/system/generic/monitors-system.tf @@ -25,6 +25,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:system", "provider:system-check", "resource:generic", "team:claranet", "created-by:terraform"], var.cpu_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "load" { @@ -54,6 +58,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:system", "provider:system-core", "resource:generic", "team:claranet", "created-by:terraform"], var.load_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "disk_space" { @@ -83,6 +91,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:system", "provider:disk", "resource:generic", "team:claranet", "created-by:terraform"], var.disk_space_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "disk_space_forecast" { @@ -126,6 +138,10 @@ EOQ renotify_interval = 0 tags = concat(["env:${var.environment}", "type:system", "provider:disk", "resource:generic", "team:claranet", "created-by:terraform"], var.disk_space_forecast_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "disk_inodes" { @@ -155,6 +171,10 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:system", "provider:disk", "resource:generic", "team:claranet", "created-by:terraform"], var.disk_inodes_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } resource "datadog_monitor" "memory" { @@ -186,5 +206,9 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:system", "provider:system-check", "resource:generic", "team:claranet", "created-by:terraform"], var.memory_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } } diff --git a/system/unreachable/monitors-unreachable.tf b/system/unreachable/monitors-unreachable.tf index ee65374..98d950f 100644 --- a/system/unreachable/monitors-unreachable.tf +++ b/system/unreachable/monitors-unreachable.tf @@ -24,5 +24,9 @@ EOQ require_full_window = true tags = concat(["env:${var.environment}", "type:system", "provider:host", "resource:unreachable", "team:claranet", "created-by:terraform"], var.unreachable_extra_tags) + + lifecycle { + ignore_changes = ["silenced"] + } }