Commit d484fa8
authored
Fix backup status query (#484)
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.1 parent 0537920 commit d484fa8
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
0 commit comments