MON-32 - Test to deploy elasticache module from redis and memcached
This commit is contained in:
parent
76d7087505
commit
d182b0c380
@ -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" {
|
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}}"
|
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)}"
|
message = "${coalesce(var.get_requests_miss_message, var.message)}"
|
||||||
|
|||||||
@ -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" {
|
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}}"
|
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)}"
|
message = "${coalesce(var.cache_miss_message, var.message)}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user