]> git.openstreetmap.org Git - chef.git/commitdiff
Reduce sensitivity of job processing rate alert
authorTom Hughes <tom@compton.nu>
Wed, 17 May 2023 19:41:52 +0000 (20:41 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 17 May 2023 19:45:58 +0000 (20:45 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 4e00763e61583edf5b051214ddea2f1fb0ed6168..02c41ce52555b862ed94c33b0e377ecfd3a3497c 100644 (file)
@@ -727,8 +727,8 @@ groups:
         annotations:
           error_rate: "{{ $value | humanizePercentage }}"
       - alert: job processing rate
-        expr: rate(pg_stat_user_tables_n_tup_del{datname="openstreetmap",relname="delayed_jobs"}[5m]) / rate(pg_stat_user_tables_n_tup_ins{datname="openstreetmap",relname="delayed_jobs"}[5m]) < 0.9 and ignoring(job, name, datname, relname, schemaname, server) chef_role{name="db-master"} == 1
-        for: 15m
+        expr: rate(pg_stat_user_tables_n_tup_del{datname="openstreetmap",relname="delayed_jobs"}[1h]) / rate(pg_stat_user_tables_n_tup_ins{datname="openstreetmap",relname="delayed_jobs"}[1h]) < 0.9 and ignoring(job, name, datname, relname, schemaname, server) chef_role{name="db-master"} == 1
+        for: 1h
         labels:
           alertgroup: web
         annotations: