Skip to content

Commit e58a777

Browse files
authored
use correct condition when to create alerts (#1190)
Signed-off-by: Kenny Leung <[email protected]>
1 parent 0b19bc9 commit e58a777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/slo/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ resource "google_monitoring_slo" "success_gclb" {
114114

115115
# Alert policy for multi-region success SLO burn rate
116116
resource "google_monitoring_alert_policy" "slo_burn_rate_multi_region" {
117-
for_each = var.slo.monitor_gclb ? local.rolling_periods : {}
117+
for_each = var.slo.enable_alerting ? local.rolling_periods : {}
118118

119119
display_name = "${var.service_name} - Multi-region ${each.key}d SLO Burn Rate Alert"
120120
project = var.project_id

0 commit comments

Comments
 (0)