You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e35de1e
Browse filesBrowse the repository at this point in the historyBrowse files
Add the experimental `supabase warehouse inspect capacity` command,
stacked on #7640.
```sh
supabase warehouse inspect capacity --remote <project-ref> --since 30m
```
Generate the command from the public capacity API contract, with
`--from`/`--to`, `--attributes`, and `--interval`. Keep metric selection
defaults and range validation server-owned.
Reuse the shared text, JSON, and YAML output contract, preserving units,
dimensions, null values, and availability. JSON/YAML retain the complete
response.
No new generated-command runtime or generator logic is needed.
Closes PIPE-1463.
Copy file name to clipboardExpand all lines: apps/cli/src/commands/api/generated.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,34 @@ Enables replication for the currently eligible tables in a schema, or the named
67
67
- Failure message from `/data/attributes/status_error`.
68
68
- Failure hint names `supabase warehouse status --remote=<ref>`.
69
69
70
+
## `supabase warehouse inspect capacity`
71
+
72
+
Inspect Warehouse capacity diagnostics
73
+
74
+
Returns capacity, admission, assignment-wait, and activation measurements over a bounded time range, using the project’s stored Warehouse placement. Use `--since` or specify both `--from` and `--to`; the default is the last 30 minutes.
75
+
76
+
Each measurement includes its definition, unit, aggregation, requested and effective ranges, `rate_window_seconds`, source-sample freshness, availability, coverage, and full series with dimension labels such as `reason`, `kind`, and `result`.
77
+
78
+
Executor invocations in flight are distinct from worker admission grants. Occupied admission includes active plus pending grants. The configured admission limit does not imply an open gate or spare capacity. Missing, stale, and insufficient observations remain unavailable or `null`; they do not establish healthy or idle capacity.
79
+
80
+
Point timestamps are evaluation times; `last_sample_at` is the original source-sample time. Rates and latency quantiles describe the effective rate window at each point, not the entire requested range.
81
+
82
+
Each request returns up to eight measurements, and a failure of one measurement does not discard the other results. No raw queries or backend selectors are accepted.
0 commit comments