From 8b3cc3cdfa9adece4a4eb3038f915dceaa2a3fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sivert=20Luns=C3=A6ter?= Date: Fri, 16 Aug 2024 09:39:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=BA=20Sett=20threshold=20til=201=20fra?= =?UTF-8?q?=202=20p=C3=A5=20alerten=20for=20annullering=20datastreamen.=20?= =?UTF-8?q?Dette=20for=20=C3=A5=C2=A0hindre=20falske=20positiver=20og=20sp?= =?UTF-8?q?amming?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prod/datastream-alerts.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/prod/datastream-alerts.tf b/prod/datastream-alerts.tf index 6eef409..747bf6c 100644 --- a/prod/datastream-alerts.tf +++ b/prod/datastream-alerts.tf @@ -123,8 +123,9 @@ resource "google_monitoring_alert_policy" "datastream_throughput_events_alert_po # Ingen data punkter er bad, det skal trigge alert evaluation_missing_data = "EVALUATION_MISSING_DATA_ACTIVE" - # Threshold, gjennomsnittlig mindre enn 2 events de siste 15 minuttene - threshold_value = 2 + # Threshold, gjennomsnittlig mindre enn 2 events den siste timen + # For annulleringer datastreamen er threshold satt til 1, pga veldig lav aktivitet om natten + threshold_value = each.value == google_datastream_stream.annulleringer_datastream.stream_id ? 1 : 2 comparison = "COMPARISON_LT" } }