From 93f9daecee1e6c45e23ab2199e1d0dfa7cd06797 Mon Sep 17 00:00:00 2001 From: samber Date: Thu, 27 Mar 2025 13:42:51 +0000 Subject: [PATCH] Publish --- dist/rules/postgresql/postgres-exporter.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/rules/postgresql/postgres-exporter.yml b/dist/rules/postgresql/postgres-exporter.yml index b52dddd..cd48bb4 100644 --- a/dist/rules/postgresql/postgres-exporter.yml +++ b/dist/rules/postgresql/postgres-exporter.yml @@ -194,10 +194,10 @@ groups: description: "The table {{ $labels.relname }} has an invalid index: {{ $labels.indexrelname }}. You should execute `DROP INDEX {{ $labels.indexrelname }};`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" - alert: PostgresqlReplicationLagHigh - expr: 'pg_replication_lag_seconds > 60' - for: 2m + expr: 'pg_replication_lag_seconds > 5' + for: 30s labels: severity: warning annotations: - summary: Postgresql replication lag high (> 60s) (instance {{ $labels.instance }}) - description: "The PostgreSQL replication lag is high\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" + summary: Postgresql replication lag high (instance {{ $labels.instance }}) + description: "The PostgreSQL replication lag is high (> 60s)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"