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.
This recipe ships data emitted by
msb-metrics.
See the msb-metrics page for the flag reference, metric names, and
deployment constraints.msb-metrics can ship to it without an intermediate collector. Point
the OTLP endpoint at Prometheus’s /api/v1/otlp/v1/metrics path and the
microsandbox.* series land directly in the local TSDB.
Enable the OTLP receiver on Prometheus
Start Prometheus with the OTLP receiver feature flag (Prometheus
treats it as a release-gated feature in some versions; recent
releases have it on by default):The receiver listens at
/api/v1/otlp/v1/metrics on the same port
as the rest of the HTTP API (default :9090).Point msb-metrics at Prometheus
msb-metrics’s OTLP HTTP transport speaks the protobuf wire format
Prometheus expects:msb-metrics uses HTTP endpoints
exactly as provided.Naming conventions
Prometheus’s OTLP receiver translates OTel metric names per the OpenTelemetry semantic conventions for Prometheus compatibility:- dots become underscores:
microsandbox.cpu.utilization→microsandbox_cpu_utilization_ratio(suffix derives from the unit1/ratio) - byte units add a
_bytessuffix:microsandbox.memory.usage→microsandbox_memory_usage_bytes - the collector self-observability counters get the
_totalsuffix expected by Prometheus:microsandbox.collector.exports.success→microsandbox_collector_exports_success_total
Long-running deployments
For production, put a stable layer betweenmsb-metrics and Prometheus:
either a local otel-collector
that handles batching and retries, or
Grafana Alloy. Direct
shipping is fine for single-host setups and development; the buffer in
msb-metrics is bounded by --max-buffered and is not a substitute
for a real metrics relay.