MON-32 - Test to deploy elasticache module from redis and memcached

This commit is contained in:
Alexandre Gaillet 2018-05-04 12:19:51 +02:00 committed by Quentin Manfroi
parent 76d7087505
commit d182b0c380
2 changed files with 14 additions and 0 deletions

View File

@ -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)}"

View File

@ -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)}"