Returns lightweight database metrics: the open target, durability, whether the handle is open, the active branch count, the registered space count for the selected branch, and the control-plane health status. The branch defaults to the handle branch when omitted.
Status commands return a scalar or compact status payload and do not mutate database state.
Examples
Read lightweight database metrics.
CLI
$ strata metrics
Wire
{"type":"metrics"}
Parameters
No parameters.
Plus the optional scope: branch and space (default to the session branch and the "default" space).
Returns
StatusResponse<AdminMetrics>.
Errors
failed_precondition.engine.runtime_closednot_found.engine.branchinvalid_argument.engine.branch_name
Invocation
- CLI:
strata metrics - Wire type:
metrics