- name: database
rules:
- alert: postgres replication delay
- expr: pg_replication_lag_seconds > 5
- for: 5m
+ expr: pg_replication_lag_seconds > 30
+ for: 15m
labels:
alertgroup: database
annotations:
labels:
alertgroup: "{{ $labels.instance }}"
- alert: postgresql replication delay
- expr: pg_replication_lag_seconds > 5
- for: 1m
+ expr: pg_replication_lag_seconds > 30
+ for: 15m
labels:
alertgroup: "{{ $labels.instance }}"
annotations:
alertgroup: "prometheus"
- name: raid
rules:
+ - alert: raid controller battery failed
+ expr: ohai_controller_info{battery_status="failed"} > 0
+ for: 5m
+ labels:
+ alertgroup: "{{ $labels.instance }}"
- alert: raid array degraded
expr: ohai_array_info{status="degraded"} > 0
for: 5m
labels:
alertgroup: "{{ $labels.instance }}"
annotations:
- new_ercrors: "{{ $value }}"
+ new_errors: "{{ $value }}"
- name: smart
rules:
- alert: smart failure
labels:
alertgroup: "{{ $labels.instance }}"
- alert: systemd failed chef client service
- expr: node_systemd_unit_state{state="failed",name="chef-client.service"} == 1
- for: 6h
+ expr: sum_over_time(node_systemd_unit_state{state="inactive",name="chef-client.service"}[6h]) == 0
+ for: 0m
labels:
alertgroup: "{{ $labels.instance }}"
- name: tile
alertgroup: tile
annotations:
miss_rate: "{{ $value | humanizePercentage }}"
+ - alert: tile render rate
+ expr: sum(rate(renderd_zoom_metatiles_total[5m])) by (instance) == 0
+ for: 15m
+ labels:
+ alertgroup: tile
+ annotations:
+ render_rate: "{{ $value }} tiles/s"
- name: time
rules:
- alert: clock not synchronising