Alert on Immich PostgreSQL replica lag

This commit is contained in:
feedc0de committed 2026-10-22 12:07:25 +02:00
1 parent bdf43cf256
commit 543ac82881
1 file changed
+8
+8
View File
@@ -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.