Skip to content

Commit

Permalink
🐛 Legg til at event_type vi alerter på er postgres CDC. Dette gjør at…
Browse files Browse the repository at this point in the history
… alerten ikke vil slå ut når backfills er ferdig
  • Loading branch information
sivertflu committed Aug 21, 2024
1 parent 4a2bd31 commit 7f6bfd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prod/datastream-alerts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ resource "google_monitoring_alert_policy" "datastream_throughput_events_alert_po
display_name = "${each.value} - Stream event throughput"

condition_threshold {
filter = "resource.type = \"datastream.googleapis.com/Stream\" AND resource.labels.stream_id = \"${each.value}\" AND metric.type = \"datastream.googleapis.com/stream/event_count\""
filter = "resource.type = \"datastream.googleapis.com/Stream\" AND resource.labels.stream_id = \"${each.value}\" AND metric.type = \"datastream.googleapis.com/stream/event_count\" AND metric.labels.read_method = \"postgresql-cdc\""

aggregations {
alignment_period = "3600s"
Expand Down

0 comments on commit 7f6bfd1

Please sign in to comment.