diff --git a/cloud/aws/elasticache/common/modules.tf b/cloud/aws/elasticache/common/modules.tf new file mode 100644 index 0000000..987c046 --- /dev/null +++ b/cloud/aws/elasticache/common/modules.tf @@ -0,0 +1,8 @@ +module "filter-tags" { + source = "../../../../common/filter-tags" + + environment = "${var.environment}" + resource = "aws_elasticache" + filter_tags_use_defaults = "${var.filter_tags_use_defaults}" + filter_tags_custom = "${var.filter_tags_custom}" +} diff --git a/cloud/aws/elasticache/common/monitors-elasticache.tf b/cloud/aws/elasticache/common/monitors-elasticache.tf index 0e85c7c..4c28e08 100644 --- a/cloud/aws/elasticache/common/monitors-elasticache.tf +++ b/cloud/aws/elasticache/common/monitors-elasticache.tf @@ -6,7 +6,7 @@ resource "datadog_monitor" "elasticache_eviction" { query = < 0 EOF @@ -33,7 +33,7 @@ resource "datadog_monitor" "elasticache_max_connection" { query = <= 65000 EOF @@ -60,7 +60,7 @@ resource "datadog_monitor" "elasticache_no_connection" { query = < ${var.swap_threshold_critical} EOF @@ -120,7 +120,7 @@ resource "datadog_monitor" "elasticache_free_memory" { query = < ${var.eviction_growing_threshold_critical} EOF diff --git a/cloud/aws/elasticache/memcached/modules.tf b/cloud/aws/elasticache/memcached/modules.tf new file mode 100644 index 0000000..987c046 --- /dev/null +++ b/cloud/aws/elasticache/memcached/modules.tf @@ -0,0 +1,8 @@ +module "filter-tags" { + source = "../../../../common/filter-tags" + + environment = "${var.environment}" + resource = "aws_elasticache" + filter_tags_use_defaults = "${var.filter_tags_use_defaults}" + filter_tags_custom = "${var.filter_tags_custom}" +} diff --git a/cloud/aws/elasticache/memcached/monitors-memcached.tf b/cloud/aws/elasticache/memcached/monitors-memcached.tf index 4ab3914..58484e1 100644 --- a/cloud/aws/elasticache/memcached/monitors-memcached.tf +++ b/cloud/aws/elasticache/memcached/monitors-memcached.tf @@ -61,9 +61,9 @@ resource "datadog_monitor" "memcached_get_hits" { query = < ${var.cpu_high_threshold_critical} EOF diff --git a/cloud/aws/elasticache/redis/modules.tf b/cloud/aws/elasticache/redis/modules.tf new file mode 100644 index 0000000..987c046 --- /dev/null +++ b/cloud/aws/elasticache/redis/modules.tf @@ -0,0 +1,8 @@ +module "filter-tags" { + source = "../../../../common/filter-tags" + + environment = "${var.environment}" + resource = "aws_elasticache" + filter_tags_use_defaults = "${var.filter_tags_use_defaults}" + filter_tags_custom = "${var.filter_tags_custom}" +} diff --git a/cloud/aws/elasticache/redis/monitors-redis.tf b/cloud/aws/elasticache/redis/monitors-redis.tf index ed61970..e37f163 100644 --- a/cloud/aws/elasticache/redis/monitors-redis.tf +++ b/cloud/aws/elasticache/redis/monitors-redis.tf @@ -61,9 +61,9 @@ resource "datadog_monitor" "redis_cache_hits" { query = < ${var.cpu_high_threshold_critical} EOF @@ -122,7 +122,7 @@ resource "datadog_monitor" "redis_replication_lag" { query = < ${var.replication_lag_threshold_critical} EOF @@ -154,8 +154,8 @@ resource "datadog_monitor" "redis_commands" { query = <