From 8f47b1681edeaf5a729736a425df4c16b1af1863 Mon Sep 17 00:00:00 2001 From: Deniz Erdogan Date: Wed, 15 Nov 2023 15:11:01 +0100 Subject: [PATCH] adjust alignment_period --- tf/modules/CHANGELOG.md | 3 +++ tf/modules/monitoring/sql-backup-failure-alert.tf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tf/modules/CHANGELOG.md b/tf/modules/CHANGELOG.md index d596af517..0442a6642 100644 --- a/tf/modules/CHANGELOG.md +++ b/tf/modules/CHANGELOG.md @@ -1,3 +1,6 @@ +# tf-module-monitoring-22 +- Improve logical SQL backup alerting policy (alignment period 60s -> 1h) + # tf-module-monitoring-21 - Attempt to fix the failed logical SQL backup alerting policy diff --git a/tf/modules/monitoring/sql-backup-failure-alert.tf b/tf/modules/monitoring/sql-backup-failure-alert.tf index 1aa2e9234..3809aa54e 100644 --- a/tf/modules/monitoring/sql-backup-failure-alert.tf +++ b/tf/modules/monitoring/sql-backup-failure-alert.tf @@ -28,7 +28,7 @@ resource "google_monitoring_alert_policy" "alert_policy_sql_logical_backup_failu aggregations { cross_series_reducer = "REDUCE_COUNT" per_series_aligner = "ALIGN_COUNT" - alignment_period = "60s" + alignment_period = "3600s" group_by_fields = [ "resource.labels.container_name", ]