Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Use proper/readable units in alert conditions. (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
yegle authored Dec 10, 2020
1 parent b5b0c57 commit d29d02d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/alerting/alerts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "google_monitoring_alert_policy" "backend_latency" {
| align delta(1m)
| every 1m
| group_by [resource.backend_target_name], [val: percentile(value.backend_latencies, 99)]
| condition val > 2000 'ms'
| condition val > 2 's'
EOT
trigger {
count = 1
Expand Down Expand Up @@ -73,7 +73,7 @@ resource "google_monitoring_alert_policy" "E2ETestErrorRatioHigh" {
| group_by [metric.step, metric.test_type], [val: sum(value.request_count)]
| ratio
| window 1m
| condition ratio > 0.1
| condition ratio > 10 '%'
EOT
trigger {
count = 1
Expand Down Expand Up @@ -143,7 +143,7 @@ resource "google_monitoring_alert_policy" "probers" {
| align next_older(1m)
| every 1m
| group_by [resource.host], [val: fraction_true(value.check_passed)]
| condition val < 0.2 '10^2.%'
| condition val < 20 '%'
EOT
trigger {
count = 1
Expand Down

0 comments on commit d29d02d

Please sign in to comment.