MON-32 - Create common monitors directory

This commit is contained in:
Alexandre Gaillet 2018-05-15 17:53:45 +02:00 committed by Quentin Manfroi
parent 491baf1781
commit 9e01024563
5 changed files with 8 additions and 7 deletions

View File

@ -5,8 +5,8 @@ How to use this module
---------------------- ----------------------
``` ```
module "datadog-monitors-aws-elasticcache" { module "datadog-monitors-aws-elasticache" {
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/aws/elasticcache?ref={revision}" source = "../common"
message = "${module.datadog-message-alerting.alerting-message}" message = "${module.datadog-message-alerting.alerting-message}"
environment = "${var.environment}" environment = "${var.environment}"

View File

@ -6,7 +6,7 @@ resource "datadog_monitor" "elasticache_eviction" {
query = <<EOF query = <<EOF
${var.eviction_aggregator}(${var.eviction_timeframe}): ( ${var.eviction_aggregator}(${var.eviction_timeframe}): (
${var.eviction_aggregator}:aws.elasticache.evictions{${var.filter_tags} by {region,cluster} ${var.eviction_aggregator}:aws.elasticache.evictions{${var.filter_tags}} by {region,cluster}
) > 0 ) > 0
EOF EOF

View File

@ -17,7 +17,7 @@ module "datadog-monitors-aws-elasticcache-redis" {
Purpose Purpose
------- -------
Creates DataDog monitors with the following checks : Creates DataDog monitors with the following checks:
* Cache Hit * Cache Hit
* CPU High * CPU High
@ -55,7 +55,8 @@ Related documentation
--------------------- ---------------------
DataDog documentation: [https://docs.datadoghq.com/integrations/amazon_elasticache/](https://docs.datadoghq.com/integrations/amazon_elasticache/) DataDog documentation: [https://docs.datadoghq.com/integrations/amazon_elasticache/](https://docs.datadoghq.com/integrations/amazon_elasticache/)
And more here : And more here:
* [https://www.datadoghq.com/dashboards/elasticache-dashboard-redis/](https://www.datadoghq.com/dashboards/elasticache-dashboard-redis/) * [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/) * [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/)

View File

@ -7,7 +7,7 @@ data "template_file" "filter" {
} }
module "datadog-monitors-aws-elasticcache-common" { module "datadog-monitors-aws-elasticcache-common" {
source = "../." source = "../common"
message = "${var.message}" message = "${var.message}"
environment = "${var.environment}" environment = "${var.environment}"