Skip to content

Commit

Permalink
change api prober alert (#892)
Browse files Browse the repository at this point in the history
Signed-off-by: Hector Fernandez <[email protected]>
  • Loading branch information
hectorj2f authored Dec 6, 2023
1 parent 9e5583e commit b2916fb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions terraform/gcp/modules/monitoring/prober/prober_alerts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,21 @@ resource "google_monitoring_alert_policy" "prober_verification" {
condition_threshold {
aggregations {
alignment_period = "60s"
per_series_aligner = "ALIGN_SUM"
per_series_aligner = "ALIGN_RATE"
}

comparison = "COMPARISON_GT"
duration = "0s"
filter = "resource.type = \"prometheus_target\" AND metric.type = \"prometheus.googleapis.com/verification/unknown\" AND metric.labels.verified = \"false\""
duration = "60s"
filter = "resource.type = \"prometheus_target\" AND metric.type = \"prometheus.googleapis.com/verification/unknown:counter\" AND metric.labels.verified = \"false\""
threshold_value = "0"

// When there are no responses we get no data instead of "0" in the
// metric. This flag treats lack of data as 0 so incidents autoresolve
// correctly.
evaluation_missing_data = "EVALUATION_MISSING_DATA_NO_OP"

trigger {
count = "1"
percent = "0"
count = "1"
}
}

Expand Down

0 comments on commit b2916fb

Please sign in to comment.