Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions components/nautobot/cloudnative-postgres-nautobot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ metadata:
spec:
schedule: "0 0 0 * * *"
backupOwnerReference: self
method: plugin
pluginConfiguration:
name: barman-cloud.cloudnative-pg.io
cluster:
name: nautobot-cluster
6 changes: 6 additions & 0 deletions operators/cnpg-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ helmCharts:
releaseName: cloudnative-pg
version: 0.27.1
repo: https://cloudnative-pg.github.io/charts
- name: plugin-barman-cloud
includeCRDs: true
namespace: cnpg-system
releaseName: plugin-barman-cloud
version: 0.6.0
repo: https://cloudnative-pg.github.io/charts
2 changes: 1 addition & 1 deletion operators/cnpg-system/rule-backups-too-old.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- alert: CnpgLastBackupTooOld
expr: |
(time() - sum by (namespace) (
cnpg_collector_last_available_backup_timestamp{pod=~"nautobot-cluster-([1-9][0-9]*)$"}
barman_cloud_cloudnative_pg_io_last_available_backup_timestamp{pod=~"nautobot-cluster-([1-9][0-9]*)$"}
)) / 3600 > 24
for: 0s
labels:
Expand Down
Loading