Skip to content

Commit

Permalink
🩺 Sett threshold til 1 fra 2 på alerten for annullering datastreamen.…
Browse files Browse the repository at this point in the history
… Dette for å hindre falske positiver og spamming
  • Loading branch information
sivertflu committed Aug 16, 2024
1 parent 9177d52 commit 8b3cc3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prod/datastream-alerts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down

0 comments on commit 8b3cc3c

Please sign in to comment.