Every Devbox comes with Namespace Compute’s built-in observability. The
nsc CLI and the compute client in the TS SDK read it for any running Devbox.Read a Devbox’s metrics
1
Find the instance ID
Compute tools need the Devbox’s instance ID, which changes on every start, so look it up while it’s running. In the CLI, use the ID from
devbox list.2
Read the metrics
The CLI shows live usage in your terminal. The TS SDK returns time series for the period you ask for.
Available metrics
Count running Devboxes across your account
If you build on the Namespace platform, thenamespace.account.running_instances OpenTelemetry metric counts your running instances by purpose. Devboxes have the purpose devbox. Devboxes that are starting, stopped, or shutting down aren’t counted.
Related
- Logs to see what a Devbox printed.
- Reference:
nsc top,getInstanceMetrics().