Skip to content

Commit

Permalink
Merge pull request #1 from arivictor/fix/log-name
Browse files Browse the repository at this point in the history
Update google_monitoring_alert_policy.tf
  • Loading branch information
arivictor authored Jun 18, 2023
2 parents 1b4992a + 37fba79 commit e01c719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google_monitoring_alert_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "google_monitoring_alert_policy" "object_gt_threshold" {
condition_matched_log {
filter = <<-EOT
severity=WARNING
logName="projects/${data.google_project.current.project_id}/${var.name}"
logName="projects/${data.google_project.current.project_id}/logs/${var.name}"
jsonPayload.object_count >= ${var.threshold}
EOT
}
Expand All @@ -19,4 +19,4 @@ resource "google_monitoring_alert_policy" "object_gt_threshold" {
}
auto_close = "604800s"
}
}
}

0 comments on commit e01c719

Please sign in to comment.