From d182b0c380ef16d40436d42b0f001052d8a0c5df Mon Sep 17 00:00:00 2001 From: Alexandre Gaillet Date: Fri, 4 May 2018 12:19:51 +0200 Subject: [PATCH] MON-32 - Test to deploy elasticache module from redis and memcached --- cloud/aws/elasticache/memcached/monitors-memcached.tf | 7 +++++++ cloud/aws/elasticache/redis/monitors-redis.tf | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/cloud/aws/elasticache/memcached/monitors-memcached.tf b/cloud/aws/elasticache/memcached/monitors-memcached.tf index 0418e3f..7cbe296 100644 --- a/cloud/aws/elasticache/memcached/monitors-memcached.tf +++ b/cloud/aws/elasticache/memcached/monitors-memcached.tf @@ -6,6 +6,13 @@ data "template_file" "filter" { } } +module "datadog-monitors-aws-elasticcache" { + source = "../." + + message = "${var.message}" + environment = "${var.environment}" +} + resource "datadog_monitor" "memcached_get_miss" { name = "[${var.environment}] Elasticache Memcached get requests missed {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" message = "${coalesce(var.get_requests_miss_message, var.message)}" diff --git a/cloud/aws/elasticache/redis/monitors-redis.tf b/cloud/aws/elasticache/redis/monitors-redis.tf index 8734541..3dbacc0 100644 --- a/cloud/aws/elasticache/redis/monitors-redis.tf +++ b/cloud/aws/elasticache/redis/monitors-redis.tf @@ -6,6 +6,13 @@ data "template_file" "filter" { } } +module "datadog-monitors-aws-elasticcache" { + source = "../." + + message = "${var.message}" + environment = "${var.environment}" +} + resource "datadog_monitor" "redis_cache_miss" { name = "[${var.environment}] Elasticache Redis cache miss {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" message = "${coalesce(var.cache_miss_message, var.message)}"