Skip to content

Commit

Permalink
fix: correct multiple metrics on backrest recovery window panel (#453)
Browse files Browse the repository at this point in the history
Co-authored-by: Douglas J Hunley <[email protected]>
  • Loading branch information
keithf4 and hunleyd authored Jan 16, 2025
1 parent 26bf24f commit 9943a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/437.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- grafana - Fix pgBackRest recovery window panel showing multiple values after a PostgreSQL switchover
2 changes: 1 addition & 1 deletion grafana/postgres/PGBackrest.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"uid": "${ccp_datasource}"
},
"exemplar": true,
"expr": "time()- ccp_backrest_oldest_full_backup_time_seconds{stanza=\"[[backrest_stanza]]\", repo=\"[[backrest_repo]]\"} + on(job,instance) group_left() (ccp_is_in_recovery_status == 2)",
"expr": "max(time()- ccp_backrest_oldest_full_backup_time_seconds{stanza=\"[[backrest_stanza]]\", repo=\"[[backrest_repo]]\"} + on(job,instance) group_left() (ccp_is_in_recovery_status == 2))",
"interval": "",
"legendFormat": "",
"refId": "A"
Expand Down

0 comments on commit 9943a14

Please sign in to comment.