Service health dashboard
A service health dashboard shows request rate, error rate and latency, and saved views can keep their time range.
Rootprint 0.4.1 adds a service health dashboard at /monitoring. It shows request rate, error rate, latency, per-service p95, and endpoints ranked by total time. The same data is available from GET /api/monitoring/services.
Saved views can now store a time range: a relative preset from 5 minutes to 30 days, or a fixed window. It is opt-in, so views saved without one leave the current range alone.
Search audit rows are now pruned after SEARCH_AUDIT_RETENTION_DAYS, 30 days by default.
Before you upgrade
Migration
0019deletes saved view descriptions. Export them first if you need them:SELECT id, index_id, name, description FROM "view" WHERE description IS NOT NULL;Rolling back to 0.4.0 after the migration breaks every saved-view read.
SEARCH_AUDIT_RETENTION_DAYSbelow 30 fails at boot.
Changelog
⚠️ Breaking
- Saved view
descriptionremoved from the create/patch bodies and responses of/api/indexes/{indexId}/views. Migration0019drops the column, deleting the text; 0.4.0 still selects it, so rolling back breaks every saved-view read. Read it out first if you need it:SELECT id, index_id, name, description FROM "view" WHERE description IS NOT NULL;
Added
- Service health dashboard at
/monitoring: request rate, error rate, latency, per-service p95, and endpoints ranked by total time. GET /api/monitoring/services—startTs,endTs,interval, optionalserviceandendpointLimit; max 30-day range and 2000 buckets. Needslogs:read(session cookie or personal key) and is recorded in the search audit.timeRangeon saved views — a relative preset (5m–30d) or an absolute epoch-second window, opt-in when saving. Views saved without one leave the current range alone.SEARCH_AUDIT_RETENTION_DAYSprunes search audit rows on the hourly stats tick. Default and minimum 30 days; lower values fail at boot.omittedCounton histogram buckets — how many documents the bucket’s returned level terms left out. The web derives anUNKNOWNlevel from it for documents with no level field; being synthetic, it cannot be filtered on.
Changed
- GitHub org membership is read from one paginated
GET /user/memberships/orgs(≤10 pages of 100) and matched case-insensitively, instead of one probe per configured org. 5s timeout, redirects refused, failures logged with GitHub’s rate-limit headers. Failure still denies access; an error raised during the check now denies the sign-in instead of failing the request. - Durations over a minute format as minutes, hours, or days.
- README leads with the live demo at demo.rootprint.io.
- Internal (web): the root layout no longer re-fetches session and bootstrap state on client-side navigation, endpoint row-count buttons filter locally, modal busy state and the field row and time-range picker were centralized, and the Geist fonts are preloaded.
Fixed
- Switching indexes clears the views dropdown instead of leaving the previous index’s views on screen.
- Saving a view no longer stores an empty column set before display preferences resolve.
- The log detail drawer dropped
aria-modal; it never trapped focus or blocked the page. - Page titles and breadcrumbs for the index edit and GitHub authentication pages.
- A field table’s last row no longer draws a border against the container’s own.