Skip to content

Commit

Permalink
Update alert threshold for Redis OOM (#770)
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden B <[email protected]>
  • Loading branch information
haydentherapper authored Sep 21, 2023
1 parent 5115e80 commit d5eada0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions terraform/gcp/modules/monitoring/infra/alerts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ resource "google_monitoring_alert_policy" "redis_memory_usage" {
display_name = "Redis Memory Usage > 90%"

documentation {
content = "Redis using >90% of max memory. You may need to allocate more."
content = "Redis using >90% of max memory. You need to allocate more via Terraform with redis_cluster_memory_size_gb."
mime_type = "text/markdown"
}

Expand Down Expand Up @@ -525,21 +525,21 @@ resource "google_monitoring_alert_policy" "redis_out_of_memory" {
comparison = "COMPARISON_GT"
duration = "0s"
filter = "metric.type=\"redis.googleapis.com/stats/memory/usage_ratio\" resource.type=\"redis_instance\""
threshold_value = "0.999"
threshold_value = "0.99"

trigger {
count = "1"
percent = "0"
}
}

display_name = "Redis - Out of Memory [MEAN]"
display_name = "Redis - Out of Memory (99%) [MEAN]"
}

display_name = "Redis Out of Memory"
display_name = "Redis Out of Memory (99%)"

documentation {
content = "Redis is out of memory. Please investigate and allocate more."
content = "Redis is out of memory. Please investigate and allocate more via Terraform with redis_cluster_memory_size_gb."
mime_type = "text/markdown"
}

Expand Down

0 comments on commit d5eada0

Please sign in to comment.