From 543ac82881694fe1a8401e743ce114a29d9b7338 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Thu, 22 Oct 2026 12:07:25 +0200 Subject: [PATCH] Alert on Immich PostgreSQL replica lag --- apps/immich/resources/alerts.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/immich/resources/alerts.yaml b/apps/immich/resources/alerts.yaml index 41dd72c..bab4732 100644 --- a/apps/immich/resources/alerts.yaml +++ b/apps/immich/resources/alerts.yaml @@ -39,3 +39,11 @@ spec: annotations: summary: Immich PostgreSQL is unavailable description: CloudNativePG metrics for the Immich cluster have been unavailable for five minutes. + - alert: ImmichPostgreSQLReplicationLag + expr: max(cnpg_pg_replication_lag{namespace="immich"}) > 300 + for: 10m + labels: + severity: warning + annotations: + summary: Immich PostgreSQL replicas are behind + description: A PostgreSQL replica has had more than five minutes of replay lag for ten minutes.