2018-09-19 18:33:08 +02:00

3.8 KiB

AWS ElastiCache Service DataDog monitors

How to use this module

module "datadog-monitors-aws-elasticache" {
  source = "../common"

  message = "${module.datadog-message-alerting.alerting-message}"
  environment = "${var.environment}"
  filter_tags = "${var.filter_tags}"
  resource    = "${var.type_of_resource}"
}

This module is loaded by default when you define memcached or redis monitors

Purpose

Creates DataDog monitors with the following checks:

  • Eviction
  • Swap
  • Max connections
  • No connection

Inputs

Name Description Type Default Required
delay Delay in seconds for the metric evaluation string 900 no
environment Infrastructure Environment string - yes
eviction_message Custom message for Elasticache eviction monitor string `` no
eviction_silenced Groups to mute for Elasticache eviction monitor map <map> no
eviction_time_aggregator Monitor aggregator for Elasticache eviction [available values: min, max or avg] string min no
eviction_timeframe Monitor timeframe for Elasticache eviction [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string last_5m no
filter_tags Tags used for filtering string - yes
max_connection_message Custom message for Elasticache max connection monitor string `` no
max_connection_silenced Groups to mute for Elasticache max connection monitor map <map> no
max_connection_time_aggregator Monitor aggregator for Elasticache max connection [available values: min, max or avg] string max no
max_connection_timeframe Monitor timeframe for Elasticache max connection [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string last_5m no
message Message sent when an alert is triggered string - yes
no_connection_message Custom message for Elasticache no connection monitor string `` no
no_connection_silenced Groups to mute for Elasticache no connection monitor map <map> no
no_connection_time_aggregator Monitor aggregator for Elasticache no connection [available values: min, max or avg] string min no
no_connection_timeframe Monitor timeframe for Elasticache no connection [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string last_5m no
resource Type of Elasticache used string - yes
swap_message Custom message for Elasticache memcached swap monitor string `` no
swap_silenced Groups to mute for Elasticache memcached swap monitor map <map> no
swap_threshold_critical Elasticache memcached swap critical threshold in percentage string 50 no
swap_threshold_warning Elasticache memcached swap warning threshold in percentage string 0 no
swap_time_aggregator Monitor aggregator for Elasticache memcached swap [available values: min, max or avg] string min no
swap_timeframe Monitor timeframe for Elasticache memcached swap [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] string last_5m no

DataDog documentation: https://docs.datadoghq.com/integrations/amazon_elasticache/

AWS ElasticSearch Service Instance metrics documentation: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/elasticache-metricscollected.html