MON-224 Readme and monitor type for memory forecast fixed

This commit is contained in:
Rafael Romero Carmona 2018-07-05 12:49:30 +02:00 committed by Quentin Manfroi
parent 42ffc11cee
commit 5899608023
2 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ How to use this module
----------------------
```
module "datadog-monitors-gcp-cloudsql" {
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/gcp/clouds-sql/instance?ref={revision}"
module "datadog-monitors-gcp-cloudsql-instance" {
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/gcp/cloud-sql/instance?ref={revision}"
project_id = "${var.gcp_project_id}"
environment = "${var.environment}"

View File

@ -138,7 +138,7 @@ resource "datadog_monitor" "memory_utilization_forecast" {
name = "[${var.environment}] Cloud SQL Memory Utilization Forecast {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${coalesce(var.memory_forecast_message, var.message)}"
type = "metric alert"
type = "query alert"
query = <<EOF
max(${var.memory_forecast_timeframe}):