X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab863f7f6f6e537980861c533b5d8612986824f9..88f820a038a839a687db7374235eca3003790296:/cookbooks/prometheus/templates/default/alert_rules.yml.erb diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 3c448cc2a..396de8de4 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -99,7 +99,7 @@ groups: - name: database rules: - alert: postgres replication delay - expr: pg_replication_lag > 30 + expr: pg_replication_lag_seconds > 30 for: 15m labels: alertgroup: database @@ -507,7 +507,7 @@ groups: labels: alertgroup: "{{ $labels.instance }}" - alert: postgresql replication delay - expr: pg_replication_lag > 30 + expr: pg_replication_lag_seconds > 30 for: 15m labels: alertgroup: "{{ $labels.instance }}"