Skip to content

cli: insta metrics + insta logs (observability) - #2

Merged
jwfing merged 1 commit into
mainfrom
devel
Jun 30, 2026
Merged

jwfing merged 1 commit into
mainfrom
devel

Conversation

@jwfing

@jwfing jwfing commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

insta metrics <db|compute> [group] and insta logs <db|compute> [group] proxy the platform's
/metrics and /logs endpoints. Compute shows real series/lines; db surfaces the provider-limitation note.

Verified end-to-end against the platform dev:fake server (metrics compute → cpu/mem/req series; logs compute → lines; db → note).

🤖 Generated with Claude Code


Summary by cubic

Adds observability to the CLI with insta metrics and insta logs, proxying the platform /metrics and /logs. Compute returns live series and log lines; DB shows a provider-limitation note.

  • New Features
    • insta metrics <db|compute> [group]: fetches series with optional --branch --from --to --step; prints latest values or --json.
    • insta logs <db|compute> [group]: fetches lines with optional --branch --limit --region --instance; prints lines or --json.
    • Defaults branch to the linked project, shows notes for DB limits, and updates CLI wiring and README.

Written for commit 50fc2e4. Summary will update on new commits.

Review in cubic

`insta metrics <db|compute> [group]` and `insta logs <db|compute> [group]`
proxy the platform's /metrics and /logs endpoints. Compute shows real series/
lines; db surfaces the provider-limitation note.

Verified end-to-end against dev:fake (metrics compute → cpu/mem/req series;
logs compute → lines; db → note).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@Fermionic-Lyu Fermionic-Lyu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants