From: Tom Hughes Date: Mon, 3 Jul 2023 16:46:24 +0000 (+0100) Subject: Fix incorrect change to replication lag alerts X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/90e757a0c0f3daaabc6da84c8f1c196ce2e27e2b Fix incorrect change to replication lag alerts --- 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 }}"