Skip to content

Conversation

@benjaminjb
Copy link
Contributor

Description

The backup status query was incorrectly changed before. This change uses the original query as a model, but simplifies the query based on the underlying metrics. This query was tested against both postgres_exporter and OTEL solutions in PGO.

Please indicate what kind of change your PR includes (multiple selections are acceptable):

  • Bugfix
  • Enhancement
  • Breaking Change
  • Documentation

Testing

  • Installation method:
    • Binary install from source, version:
    • OS package repository, distro, and version:
    • Local package server, version:
    • Custom-built package, version:
    • Other: PGO monitoring stack
  • PostgreSQL, Specify version(s): 17
  • docs tested with hugo version(s):

Code testing

Have you tested your changes against:

  • RedHat/CentOS
  • Ubuntu
  • Not applicable

If your code touches Grafana, have you:

  • [x ] Ensured Grafana runs without issue
  • Ensured relevant dashboards load without issue
  • Not applicable

Checklist:

  • I have made corresponding changes to:
    • the documentation
    • the release notes
    • the upgrade doc

The backup status query was incorrectly changed before.
This change uses the original query as a model,
but simplifies the query based on the underlying metrics.

Notes:
- The prometheus min function takes one metric;
- The last incremental backup returns the last incr, diff, or full
- The last diff backup returns the last diff or full
- The last full backup returns the last full

This is true currently for PGO OTEL and postgres_exporter solutions.
@keithf4 keithf4 added this to the 5.4 milestone Aug 28, 2025
@keithf4 keithf4 merged commit d484fa8 into CrunchyData:development Sep 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants