You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cnpg_collector_last_available_backup_timestamp metric does NOT get updated when using barman-cloud plugin #380
As per #353, I've followed the migration guide and I'm now able to create manual backups using kubectl cnpg;
However, I've just noticed that the metric cnpg_collector_last_available_backup_timestamp does not seem to get updated and thus all backup related fields ((1) Last Base Backup field in the Backups section and (2) Backupsin the Health section) show red in the Grafana dashboard:
The (scheduled and/or manual) backups are created though:
@lgyurci are you also seeing increased memory usage on the primary instance since the migration or is it just me?
Meanwhile I've (1) updated the barman-cloud plugin to v0.4.1 and (2) PG to v17.5, which caused the cluster to be restarted and the memory of the primary instance being "normal" again
We can all complain about this, or think about a solution. I’m performing a test with using kube-state-metrics to alert on fields in the Backup and ScheduledBackup resources. Unfortunately my time to work on this in the coming weeks is limited. I’ll update here when I made progress, but maybe someone else is quicker than I am.
As highlighted in the CloudNativePG 1.26.1 release notes, the project continues its transition towards a plugin-based, backup-agnostic and recovery-agnostic architecture — originally introduced in version 1.26.0 with the Barman Cloud plugin.
As part of this evolution, we have deprecated the following metrics (which will continue to work with the in-core Barman Cloud support):
cnpg_collector_first_recoverability_point
cnpg_collector_last_available_backup_timestamp
cnpg_collector_last_failed_backup_timestamp
Starting from CloudNativePG 1.27.0, if you are using the Barman Cloud plugin, metrics related to backup and recovery will instead be provided directly by the plugin and made available to the instance manager (see CNPG#8033).
The first recoverability point and last available backup metrics will still be exposed through the same Prometheus exporter, but with a new naming convention: they will now use the barman_cloud_cloudnative_pg_io_ prefix, replacing the previous cnpg_ prefix.
Information about the last failed backup is not at the moment possible to obtain.
Activity
lgyurci commentedon Jun 2, 2025
I'm facing the same issue currently
hwo-wd commentedon Jun 2, 2025
@lgyurci are you also seeing increased memory usage on the primary instance since the migration or is it just me?
Meanwhile I've (1) updated the barman-cloud plugin to
v0.4.1and (2) PG tov17.5, which caused the cluster to be restarted and the memory of the primary instance being "normal" againlgyurci commentedon Jun 2, 2025
I don't really have a reference unfortunately, since I started using CNPG since the plugin is available, and went with it from the start
OOub commentedon Jun 23, 2025
same problem here. I cannot monitor the state of backups anymore
Pionerd commentedon Jun 24, 2025
We can all complain about this, or think about a solution. I’m performing a test with using kube-state-metrics to alert on fields in the Backup and ScheduledBackup resources. Unfortunately my time to work on this in the coming weeks is limited. I’ll update here when I made progress, but maybe someone else is quicker than I am.
gbartolini commentedon Aug 7, 2025
As highlighted in the CloudNativePG 1.26.1 release notes, the project continues its transition towards a plugin-based, backup-agnostic and recovery-agnostic architecture — originally introduced in version 1.26.0 with the Barman Cloud plugin.
As part of this evolution, we have deprecated the following metrics (which will continue to work with the in-core Barman Cloud support):
cnpg_collector_first_recoverability_pointcnpg_collector_last_available_backup_timestampcnpg_collector_last_failed_backup_timestampStarting from CloudNativePG 1.27.0, if you are using the Barman Cloud plugin, metrics related to backup and recovery will instead be provided directly by the plugin and made available to the instance manager (see CNPG#8033).
The first recoverability point and last available backup metrics will still be exposed through the same Prometheus exporter, but with a new naming convention: they will now use the
barman_cloud_cloudnative_pg_io_prefix, replacing the previouscnpg_prefix.Information about the last failed backup is not at the moment possible to obtain.
See #459
feat: add upstream backup and recovery metrics (#459)
gbartolini commentedon Aug 10, 2025
The last failed backup information will be added to the objectstore status and then as a metric, as part of ticket #470
fix(prometheus-stack): use plugin-native metrics for CNPGBackupFailing
feat(cloudnative-pg): add barman-cloud S3 backup dead-man's-switch alert
monitoring: fix broken queries in the CNPG/TimescaleDB dashboard