Skip to content

Commit

Permalink
fix: readded check for primary to prevent providing erroneous metrix …
Browse files Browse the repository at this point in the history
…for replicas. see #1814
  • Loading branch information
bluewolf authored and sxd committed Sep 12, 2023
1 parent b8a6c21 commit c9e6f11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions charts/cloudnative-pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ monitoringQueriesConfigMap:
description: "Time at which postgres started (based on epoch)"
pg_replication:
primary: true
query: "SELECT CASE WHEN NOT pg_catalog.pg_is_in_recovery()
THEN 0
ELSE GREATEST (0,
Expand Down

0 comments on commit c9e6f11

Please sign in to comment.