feat(health): expose SQLite backup acknowledgment as a Prometheus gauge - #3462
Conversation
Fixes JSONbored#2089 — operators can alert on gittensory_backup_acknowledged instead of relying on boot logs alone. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 08:25:07 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 3 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3462 +/- ##
=======================================
Coverage 93.01% 93.01%
=======================================
Files 297 297
Lines 31038 31039 +1
Branches 11319 11320 +1
=======================================
+ Hits 28870 28871 +1
Misses 1513 1513
Partials 655 655
🚀 New features to boost your workflow:
|
Covers the Prometheus registration path Orb flagged as untested on JSONbored#3462. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
Fixes #2089
backupAcknowledgedGaugeValue()inhealth.ts, mirroringsqliteBackupAdvisory(1 on Postgres or when acknowledged, 0 when the advisory fires)gittensory_backup_acknowledgedat boot inserver.tsalongside the other gaugesselfhost-env-reference.tsafterserver.tseditsTest plan
npm run selfhost:env-reference:checktest/unit/selfhost-health.test.tscover SQLite unacknowledged (0), SQLite acknowledged (1), and Postgres (1)validate-codeMade with Cursor