94 lines
6.4 KiB
Markdown
94 lines
6.4 KiB
Markdown
AWS ElasticCache Redis Service DataDog monitors
|
|
===============================================
|
|
|
|
How to use this module
|
|
----------------------
|
|
|
|
```
|
|
module "datadog-monitors-aws-elasticcache-redis" {
|
|
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/aws/elasticache/redis?ref={revision}"
|
|
|
|
message = "${module.datadog-message-alerting.alerting-message}"
|
|
environment = "${var.environment}"
|
|
elasticache_size = "${var.size_of_elsaticache}"
|
|
nodes = "${data.my_cluster.num_cache_nodes}"
|
|
}
|
|
|
|
```
|
|
|
|
You can retrieve the number of nodes using the data source :
|
|
|
|
```
|
|
data "aws_elasticache_cluster" "my_cluster" {
|
|
cluster_id = "my-cluster-id"
|
|
}
|
|
|
|
```
|
|
|
|
Purpose
|
|
-------
|
|
Creates DataDog monitors with the following checks:
|
|
|
|
* Cache hits
|
|
* CPU high
|
|
* Commands received
|
|
* Replication lag
|
|
* Swap
|
|
* Free memory
|
|
|
|
Inputs
|
|
------
|
|
|
|
| Name | Description | Type | Default | Required |
|
|
|------|-------------|:----:|:-----:|:-----:|
|
|
| cache_hits_aggregator | Monitor aggregator for Elasticache redis cache hits [available values: min, max, sum or avg] | string | `min` | no |
|
|
| cache_hits_message | Custom message for Elasticache redis cache hits monitor | string | `` | no |
|
|
| cache_hits_silenced | Groups to mute for Elasticache redis cache hits monitor | map | `<map>` | no |
|
|
| cache_hits_threshold_critical | Elasticache redis cache hits critical threshold in percentage | string | `10` | no |
|
|
| cache_hits_threshold_warning | Elasticache redis cache hits warning threshold in percentage | string | `20` | no |
|
|
| cache_hits_timeframe | Monitor timeframe for Elasticache redis cache hits [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_15m` | no |
|
|
| commands_aggregator | Monitor aggregator for Elasticache redis commands [available values: min, max, sum or avg] | string | `min` | no |
|
|
| commands_message | Custom message for Elasticache redis commands monitor | string | `` | no |
|
|
| commands_silenced | Groups to mute for Elasticache redis commands monitor | map | `<map>` | no |
|
|
| commands_timeframe | Monitor timeframe for Elasticache redis commands [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
|
|
| cpu_high_aggregator | Monitor aggregator for Elasticache redis cpu high [available values: min, max, sum or avg] | string | `min` | no |
|
|
| cpu_high_message | Custom message for Elasticache redis cpu high monitor | string | `` | no |
|
|
| cpu_high_silenced | Groups to mute for Elasticache redis cpu high monitor | map | `<map>` | no |
|
|
| cpu_high_threshold_critical | Elasticache redis cpu high critical threshold in percentage | string | `90` | no |
|
|
| cpu_high_threshold_warning | Elasticache redis cpu high warning threshold in percentage | string | `75` | no |
|
|
| cpu_high_timeframe | Monitor timeframe for Elasticache redis cpu high [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_15m` | no |
|
|
| delay | Delay in seconds for the metric evaluation | string | `900` | no |
|
|
| elasticache_size | Size of the Elasticache instance | string | - | yes |
|
|
| environment | Architecture Environment | string | - | yes |
|
|
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
|
|
| filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
|
|
| free_memory_aggregator | Monitor aggregator for Elasticache redis free memory [available values: min, max, sum or avg] | string | `min` | no |
|
|
| free_memory_message | Custom message for Elasticache redis free memory monitor | string | `` | no |
|
|
| free_memory_silenced | Groups to mute for Elasticache redis free memory monitor | map | `<map>` | no |
|
|
| free_memory_threshold_critical | Elasticache redis free memory critical threshold in percentage | string | `5` | no |
|
|
| free_memory_threshold_warning | Elasticache redis free memory warning threshold in percentage | string | `10` | no |
|
|
| free_memory_timeframe | Monitor timeframe for Elasticache redis free memory [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_15m` | no |
|
|
| message | Message sent when an alert is triggered | string | - | yes |
|
|
| nodes | Number of Elasticache nodes | string | - | yes |
|
|
| replication_lag_aggregator | Monitor aggregator for Elasticache redis replication lag [available values: min, max, sum or avg] | string | `min` | no |
|
|
| replication_lag_message | Custom message for Elasticache redis replication lag monitor | string | `` | no |
|
|
| replication_lag_silenced | Groups to mute for Elasticache redis replication lag monitor | map | `<map>` | no |
|
|
| replication_lag_threshold_critical | Elasticache redis replication lag critical threshold in seconds | string | `1` | no |
|
|
| replication_lag_threshold_warning | Elasticache redis replication lag warning threshold in seconds | string | `0` | no |
|
|
| replication_lag_timeframe | Monitor timeframe for Elasticache redis replication lag [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
|
|
| swap_aggregator | Monitor aggregator for Elasticache redis swap [available values: min, max, sum or avg] | string | `min` | no |
|
|
| swap_message | Custom message for Elasticache redis swap monitor | string | `` | no |
|
|
| swap_silenced | Groups to mute for Elasticache redis swap monitor | map | `<map>` | no |
|
|
| swap_timeframe | Monitor timeframe for Elasticache redis swap [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
|
|
|
|
Related documentation
|
|
---------------------
|
|
|
|
DataDog documentation:
|
|
|
|
* [https://docs.datadoghq.com/integrations/amazon_elasticache/](https://docs.datadoghq.com/integrations/amazon_elasticache/)
|
|
* [https://www.datadoghq.com/dashboards/elasticache-dashboard-redis/](https://www.datadoghq.com/dashboards/elasticache-dashboard-redis/)
|
|
* [https://www.datadoghq.com/blog/monitoring-elasticache-performance-metrics-with-redis-or-memcached/](https://www.datadoghq.com/blog/monitoring-elasticache-performance-metrics-with-redis-or-memcached/)
|
|
|
|
AWS ElasticSearch Service Instance metrics documentation: [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/elasticache-metricscollected.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/elasticache-metricscollected.html)
|