boat does not send these:
To export telemetry from your own app in a sandbox, run your own OpenTelemetry SDK or collector in the sandbox.
An account has one endpoint. The headers hold your vendor credentials. So the API needs a key with
account.admin.
Set the endpoint
Use the Webhooks & OTel tab in the dashboard. You can also use the CLI, the API or an SDK.- Give the base URL of the collector. boat adds
/v1/metricsand/v1/logs. - Give the headers that your vendor needs. Read Vendor settings.
/v1/metrics, boat removes that part.
test. So you see a wrong key or endpoint before you wait for data. The first metrics arrive within 60 seconds.
- The endpoint must use HTTPS on port 443 or 4318.
- The endpoint must resolve only to public addresses.
- boat encrypts the header values at rest and never returns them.
- You can set up to 20 headers.
Vendor settings
For Grafana Cloud, make the header value like this:
Your own collector and Prometheus
- Run the OpenTelemetry Collector with an OTLP/HTTP receiver behind TLS.
- Export to Prometheus with remote write, or expose a scrape endpoint:
otelcol.yaml
boat.sandbox.cpu.utilization into boat_sandbox_cpu_utilization, with boat_sandbox_id and boat_sandbox_name labels.
Metrics
- All metrics are gauges.
- Every point has
boat.sandbox.idandboat.sandbox.name. So each sandbox is its own series in every vendor. - A sandbox with monitoring off sends no sandbox metrics. boat still sends its lifecycle events.
Each sandbox is one resource:
A sandbox sends points only while it runs. Each export holds the samples taken since the previous one.
Events
Each lifecycle event is one OTLP log record. boat puts the event name in two places: the event name field of the record, and theevent.name attribute.
Each record has these attributes:
Delivery and errors
- boat sends metrics in time order.
- After an outage, boat sends at most the last 10 minutes of metrics.
- boat retries an event like a webhook delivery, up to 8 attempts.
Remove the endpoint
Related
- Webhooks: the same lifecycle events, signed, to your own HTTPS endpoint.
- Command history and logs: the output of the processes in a sandbox.