diff --git a/cloud/aws/elasticache/memcached/README.md b/cloud/aws/elasticache/memcached/README.md index d0e2523..982eb38 100644 --- a/cloud/aws/elasticache/memcached/README.md +++ b/cloud/aws/elasticache/memcached/README.md @@ -16,8 +16,8 @@ module "datadog-monitors-cloud-aws-elasticache-memcached" { Creates DataDog monitors with the following checks: +- Elasticache memcached cache hit ratio - Elasticache memcached CPU -- Elasticache memcached get hit ratio ## Inputs diff --git a/cloud/aws/elasticache/memcached/monitors-memcached.tf b/cloud/aws/elasticache/memcached/monitors-memcached.tf index a79d226..a375726 100644 --- a/cloud/aws/elasticache/memcached/monitors-memcached.tf +++ b/cloud/aws/elasticache/memcached/monitors-memcached.tf @@ -1,6 +1,6 @@ resource "datadog_monitor" "memcached_get_hits" { count = "${var.get_hits_enabled ? 1 : 0}" - name = "[${var.environment}] Elasticache memcached get hit ratio {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" + name = "[${var.environment}] Elasticache memcached cache hit ratio {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" message = "${coalesce(var.get_hits_message, var.message)}" type = "metric alert" @@ -10,7 +10,7 @@ resource "datadog_monitor" "memcached_get_hits" { avg:aws.elasticache.get_hits${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count() / (avg:aws.elasticache.get_hits${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count() + avg:aws.elasticache.get_misses${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count()) - ) < ${var.get_hits_threshold_critical} + ) * 100 < ${var.get_hits_threshold_critical} EOF thresholds {