Skip to content

Commit

Permalink
Increase Cloud SQL alert threshold to 98%
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Soyland <codysoyland@github.com>
  • Loading branch information
codysoyland committed Mar 9, 2023
1 parent 8f5907d commit 99ec09e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions terraform/gcp/modules/monitoring/infra/alerts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ resource "google_monitoring_alert_policy" "cloud_sql_memory_utilization" {
project = var.project_id
}

# Cloud SQL Database Disk Utilization > 95%
# Cloud SQL Database Disk Utilization > 98%
resource "google_monitoring_alert_policy" "cloud_sql_disk_utilization" {
# In the absence of data, incident will auto-close in 7 days
alert_strategy {
Expand All @@ -126,7 +126,7 @@ resource "google_monitoring_alert_policy" "cloud_sql_disk_utilization" {
comparison = "COMPARISON_GT"
duration = "0s"
filter = "metric.type=\"cloudsql.googleapis.com/database/disk/utilization\" resource.type=\"cloudsql_database\""
threshold_value = "0.95"
threshold_value = "0.98"

trigger {
count = "1"
Expand All @@ -137,10 +137,10 @@ resource "google_monitoring_alert_policy" "cloud_sql_disk_utilization" {
display_name = "Cloud SQL Database - Disk utilization [MEAN]"
}

display_name = "Cloud Sql Disk Utilization > 95%"
display_name = "Cloud Sql Disk Utilization > 98%"

documentation {
content = "Cloud SQL disk utilization is > 95%. Please increase capacity. "
content = "Cloud SQL disk utilization is > 98%. Please increase capacity. "
mime_type = "text/markdown"
}

Expand Down

0 comments on commit 99ec09e

Please sign in to comment.