admin
metrics
Read lightweight database metrics.
strata metricsdb.admin.metrics() -> 'Any'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 --helphelp(db.admin.metrics)
Example
Read lightweight database metrics.
strata metricsdb.admin.metrics().branch_countParameters
| Name | Type | Required | Description |
|---|---|---|---|
| branch | string or null | no | Branch 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.
| Code | Retry | Commit outcome |
|---|---|---|
| failed_precondition.engine.runtime_closed | never | not_started |
| not_found.engine.branch | never | not_applicable |
| invalid_argument.engine.branch_name | never | not_started |