From 90e757a0c0f3daaabc6da84c8f1c196ce2e27e2b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 3 Jul 2023 17:46:24 +0100 Subject: [PATCH] Fix incorrect change to replication lag alerts --- cookbooks/prometheus/templates/default/alert_rules.yml.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }}" -- 2.39.5