MON-224 Readme and monitor type for memory forecast fixed
This commit is contained in:
parent
42ffc11cee
commit
5899608023
@ -5,8 +5,8 @@ How to use this module
|
|||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
```
|
```
|
||||||
module "datadog-monitors-gcp-cloudsql" {
|
module "datadog-monitors-gcp-cloudsql-instance" {
|
||||||
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/gcp/clouds-sql/instance?ref={revision}"
|
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/gcp/cloud-sql/instance?ref={revision}"
|
||||||
|
|
||||||
project_id = "${var.gcp_project_id}"
|
project_id = "${var.gcp_project_id}"
|
||||||
environment = "${var.environment}"
|
environment = "${var.environment}"
|
||||||
|
|||||||
@ -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}}"
|
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)}"
|
message = "${coalesce(var.memory_forecast_message, var.message)}"
|
||||||
|
|
||||||
type = "metric alert"
|
type = "query alert"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
max(${var.memory_forecast_timeframe}):
|
max(${var.memory_forecast_timeframe}):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user