admin

metrics

Read lightweight database metrics.

strata metrics

wire metrics

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.

To see the complete help for this command, run:

strata metrics --help

Example

Read lightweight database metrics.

strata metrics

Parameters

NameTypeRequiredDescription
branchstring or nullnoBranch whose space catalog should be counted. Defaults to the executor handle branch.

Returns

StatusResponse<AdminMetrics>

  • dataAdminMetrics
  • typestring

Errors

Recover by code. Retry policy and commit outcome come from the shipped error registry.

CodeRetryCommit outcome
failed_precondition.engine.runtime_closednevernot_started
not_found.engine.branchnevernot_applicable
invalid_argument.engine.branch_namenevernot_started
← All 11 Admin commands

agents: this page as markdown → /docs/reference/admin/metrics.md