insta db stats: connections x/y, active count, cache hit rate - #81
Merged
Conversation
…size Pure plumbing over GET /database/metrics, which now carries the provider's agent-measured pg stats. Wake-safe: a suspended instance answers from the control plane and prints "(suspended)" with structural zeros; anything the platform can't measure prints — rather than a fake 0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PUxvcou8vdZCqPBcNS4BFe
… waking Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PUxvcou8vdZCqPBcNS4BFe
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PUxvcou8vdZCqPBcNS4BFe
tonychang04
marked this pull request as ready for review
August 6, 2026 22:45
tonychang04
enabled auto-merge
August 6, 2026 22:45
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
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.
New read-only command over
GET /projects/:id/database/metrics(real values arrive with InsForge/insta-platform#175 + InsForge/insta-db#112):(suspended)+ structural zeros, never dialed (wake-safe).—, never a fake 0.--json,--branch,--groupas usual; pure-seamdbStatsLineswith tests (221 passed).🤖 Generated with Claude Code
https://claude.ai/code/session_01PUxvcou8vdZCqPBcNS4BFe
Summary by cubic
Add a read-only
insta db statscommand that shows Postgres connections total/max (with active count), cache hit rate, database size, and the Postgres server version in the header viaGET /projects/:id/database/metrics. On insta-db-backed services it is wake-safe and shows "(suspended)"; others may wake; it supports--json,--branch,--group, and uses "—" for unmeasured values.Written for commit 837dca7. Summary will update on new commits.