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
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: