Skip to content

Conversation

@simonapencea
Copy link

Summary

This PR adds tracking of the last successfully archived WAL file timestamp to the ObjectStore status and exposes it as a Prometheus metric.

Changes

  • Added LastArchivedWALTime field to the RecoveryWindow struct in the ObjectStore API
  • Updated WAL archive logic to record the timestamp after each successful archive operation
  • Exposed a new metric in the instance metrics with this information for monitoring
  • Updated the Makefile to use controller-gen v0.19.0 (matching the existing CRD files)
  • Regenerated DeepCopy methods and CRD manifests

Motivation

This metric enables monitoring of WAL archiving activity, helps detect situations where WAL archiving may have stalled and also helps with setting the correct end limit for the recovery window - which is very important for backup and restore operations using the barman plugin.

Closes #629

@simonapencea simonapencea requested a review from a team as a code owner November 12, 2025 11:54
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Nov 12, 2025
@simonapencea simonapencea force-pushed the add-last-wal-arch-time branch from aa7e487 to 6ec77fb Compare November 12, 2025 12:10
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Enhanced information related to WAL archiving

1 participant