]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/alert_rules.yml.erb
dns: update dnscontrol to 3.31.4
[chef.git] / cookbooks / prometheus / templates / default / alert_rules.yml.erb
index 5474e7e38b9d824ac9157ef372d26111c9149163..b53007521e9c3df529ff600d122c5db4d04c217f 100644 (file)
@@ -525,6 +525,13 @@ groups:
           alertgroup: "{{ $labels.instance }}"
         annotations:
           queries: "{{ $value }}"
+      - alert: postgresql idle transactions
+        expr: sum(pg_process_idle_seconds_count{state="idle in transaction"}) by (instance, server) > sum(pg_process_idle_seconds_bucket{state="idle in transaction",le="120"}) by (instance, server)
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.instance }}"
+        annotations:
+          queries: "{{ $value }}"
   - name: prometheus
     rules:
       - alert: prometheus configuration error
@@ -668,7 +675,7 @@ groups:
           age: "{{ $value | humanizeDuration }}"
       - alert: taginfo database size
         expr: abs(delta(taginfo_database_size_bytes[30m])) / taginfo_database_size_bytes > 0.1
-        for: 0m
+        for: 30m
         labels:
           alertgroup: taginfo
         annotations: