From 9a83d9bc59ebc3203b9b84b0f22ed1471744a434 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 20 Dec 2025 18:40:22 -0600 Subject: [PATCH] apply namespace fix for alert --- charts/postgres-cluster/Chart.yaml | 2 +- charts/postgres-cluster/README.md | 2 +- .../prometheus_rules/cluster-pg_replication-warning.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index dd70089..66eb5ae 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 7.1.3 +version: 7.1.4 description: Cloudnative-pg Cluster keywords: - database diff --git a/charts/postgres-cluster/README.md b/charts/postgres-cluster/README.md index 9120d29..2417dff 100644 --- a/charts/postgres-cluster/README.md +++ b/charts/postgres-cluster/README.md @@ -1,6 +1,6 @@ # postgres-cluster -![Version: 7.1.3](https://img.shields.io/badge/Version-7.1.3-informational?style=flat-square) ![AppVersion: v1.28.0](https://img.shields.io/badge/AppVersion-v1.28.0-informational?style=flat-square) +![Version: 7.1.4](https://img.shields.io/badge/Version-7.1.4-informational?style=flat-square) ![AppVersion: v1.28.0](https://img.shields.io/badge/AppVersion-v1.28.0-informational?style=flat-square) Cloudnative-pg Cluster diff --git a/charts/postgres-cluster/prometheus_rules/cluster-pg_replication-warning.yaml b/charts/postgres-cluster/prometheus_rules/cluster-pg_replication-warning.yaml index 0b415cb..e673f12 100644 --- a/charts/postgres-cluster/prometheus_rules/cluster-pg_replication-warning.yaml +++ b/charts/postgres-cluster/prometheus_rules/cluster-pg_replication-warning.yaml @@ -6,7 +6,7 @@ annotations: description: |- Standby is lagging behind by over 300 seconds (5 minutes) expr: | - cnpg_pg_replication_lag > 300 + cnpg_pg_replication_lag{namespace="{{ .namespace }}"} > 300 for: 1m labels: severity: warning