MON-32 - Create common monitors directory
This commit is contained in:
parent
491baf1781
commit
9e01024563
@ -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}"
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
@ -55,7 +55,8 @@ Related documentation
|
||||
---------------------
|
||||
|
||||
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/blog/monitoring-elasticache-performance-metrics-with-redis-or-memcached/](https://www.datadoghq.com/blog/monitoring-elasticache-performance-metrics-with-redis-or-memcached/)
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ data "template_file" "filter" {
|
||||
}
|
||||
|
||||
module "datadog-monitors-aws-elasticcache-common" {
|
||||
source = "../."
|
||||
source = "../common"
|
||||
|
||||
message = "${var.message}"
|
||||
environment = "${var.environment}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user