Documentation Index
Fetch the complete documentation index at: https://docs.microsandbox.dev/llms.txt
Use this file to discover all available pages before exploring further.
msb-metrics is a sibling process. It reads the microsandbox
shared-memory metrics registry on a fixed interval and ships
per-sandbox metrics to any OpenTelemetry-compatible backend.
Think of it the way you’d run
otel-collector,
prometheus-node-exporter,
or fluent-bit: one process per host,
lifecycle managed independently.
It’s one of three ways to read sandbox metrics. For one-shot
inspection from the terminal, use the
msb metrics CLI command. For
programmatic per-sandbox reads from application code, use
Sandbox::metrics(). All three read the same
shared-memory registry and can coexist; the diagram below shows how
they relate.
Where it fits
Three surfaces read the same shared-memory registry. This page is about the highlighted path: a continuous push to an OTel-compatible backend.Install
msb-metrics is shipped as a standalone binary and is not bundled
with the main msb installer. Download
the build for your platform from the
latest release
and place it on your PATH.
Quick start
Run msb-metrics against a local OTLP receiver
- gRPC (default)
- HTTP/Protobuf
Default port
4317. Recommended for most local OTLP collectors
and sidecars.Pick your backend
End-to-end setup walkthroughs live under Recipes:Grafana Cloud
Direct OTLP to Grafana Cloud’s gateway.
Grafana Alloy
Local Alloy as a forwarder. Recommended for production.
Prometheus
Direct OTLP to Prometheus’s native receiver.
otel-collector
Local development with the OpenTelemetry Collector.
Datadog
Via the Datadog Agent’s OTLP receiver.
Reference
For flags, metric names, attribute tables, operational notes, and troubleshooting, see the Deep dive.See also
- Deep dive: flags, emitted metrics, attributes, operations, troubleshooting.
Sandbox::metrics(): read metrics for a single sandbox from application code, an alternative to shipping via OTLP.msb metrics: one-shot CLI inspection of current per-sandbox metrics.