feat(selfhost): add Postgres observability dashboards - #2115
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 5ed3d54 | Commit Preview URL Branch Preview URL |
Jul 01 2026, 09:17 AM |
4 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2115 +/- ##
=======================================
Coverage 95.71% 95.71%
=======================================
Files 222 222
Lines 24620 24620
Branches 8936 8936
=======================================
Hits 23565 23565
Misses 432 432
Partials 623 623 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of #2011. This adds the Postgres observability slice for self-host operators: exporter wiring, Prometheus scrape jobs, Grafana panels, alerts, backup freshness metrics, and operations docs.
What changed
Why
After the SQLite-to-Postgres cutover work, operators need first-class visibility into whether Postgres is healthy or becoming the next queue bottleneck. This makes the default self-host observability stack show the database pressure signals directly instead of requiring manual container inspection.
Validation
npx vitest run test/unit/selfhost-backup-metrics-script.test.ts test/unit/selfhost-observability-config.test.ts test/unit/selfhost-grafana-dashboard.test.tsnpx vitest run test/unit/selfhost-backup-metrics-script.test.ts test/unit/selfhost-observability-config.test.ts test/unit/selfhost-grafana-dashboard.test.ts test/unit/codecov-policy.test.tsnpm run ui:lintnpm run ui:typechecknpm run typecheckdocker compose --profile postgres --profile observability --profile backup confignpm run test:cinpm audit --audit-level=moderateNotes
The Postgres exporter is scoped to the Postgres profiles, so SQLite-only observability installs do not start it against a missing database. Backup freshness metrics are opt-in with the backup profile.