diff --git a/components/nautobot/cloudnative-postgres-nautobot.yaml b/components/nautobot/cloudnative-postgres-nautobot.yaml index dd4971c4c..8db5338e2 100644 --- a/components/nautobot/cloudnative-postgres-nautobot.yaml +++ b/components/nautobot/cloudnative-postgres-nautobot.yaml @@ -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 diff --git a/operators/cnpg-system/kustomization.yaml b/operators/cnpg-system/kustomization.yaml index c2fa80965..d3c9c3bf0 100644 --- a/operators/cnpg-system/kustomization.yaml +++ b/operators/cnpg-system/kustomization.yaml @@ -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 diff --git a/operators/cnpg-system/rule-backups-too-old.yaml b/operators/cnpg-system/rule-backups-too-old.yaml index eb743ef82..fe50468b2 100644 --- a/operators/cnpg-system/rule-backups-too-old.yaml +++ b/operators/cnpg-system/rule-backups-too-old.yaml @@ -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: