• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

woblerr / pgbackrest_exporter / 28581272735
91%
master: 91%

Build:
Build:
LAST BUILD BRANCH: add_last_per_repo_metrics
DEFAULT BRANCH: master
Ran 02 Jul 2026 09:54AM UTC
Jobs 1
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jul 2026 09:51AM UTC coverage: 90.739% (+0.2%) from 90.52%
28581272735

Pull #123

github

woblerr
Add per-repository last backup metrics.

Refs #122

Track the latest full, differential and incremental backups separately for each
repository and expose repository-scoped freshness and duration metrics:
- pgbackrest_backup_repo_since_last_completion_seconds
- pgbackrest_backup_repo_last_duration_seconds

These metrics were selected because they answer repo-specific operational
questions directly: whether each repository has a recent completed backup and
how long that last backup took. This is useful for multi-repository alerting and
dashboards without sorting or joining per-backup series.

For `pgBackRest >= v2.32` this is the real repository key.
For older pgBackRest versions, repository keys are not present in backup metadata, so the exporter
uses `repo_key="0"`, matching the existing compatibility behavior for old versions.

Other last-backup values are not duplicated per repository in this change.
Checksum/page error state is already exposed for each concrete backup via
`pgbackrest_backup_error_status` with `repo_key`, so a repo-last error metric would
duplicate data and imply a repository-level error. Size, delta, annotations,
references and database-count metrics remain global or per-backup because adding
repo variants would broaden the metric surface and cardinality beyond this
focused freshness/duration use case.

Update README, unit tests and e2e checks for the new metrics.
Pull Request #123: Add per-repository last backup metrics.

43 of 44 new or added lines in 3 files covered. (97.73%)

1313 of 1447 relevant lines covered (90.74%)

15.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
87.59
1.27% backrest/backrest_last_backup_metrics.go
Jobs
ID Job ID Ran Files Coverage
1 28581272735.1 02 Jul 2026 09:54AM UTC 11
90.74
GitHub Action Run
Source Files on build 28581272735
  • Tree
  • List 11
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #123
  • PR Base - master (#22544238731)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc