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" {
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/aws/elasticcache?ref={revision}"
module "datadog-monitors-aws-elasticache" {
source = "../common"
message = "${module.datadog-message-alerting.alerting-message}"
environment = "${var.environment}"

View File

@ -6,7 +6,7 @@ resource "datadog_monitor" "elasticache_eviction" {
query = <<EOF
${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
EOF

View File

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

View File

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