Sandbox
Sandbox Metrics
The sandbox metrics allows you to get information about the sandbox’s CPU and memory usage.
The sandbox “Monitoring Metrics” feature is currently in Beta testing. You need to install the beta version of the SDK or beta version of the CLI to use it.
Installation
To get sandbox metrics, you need to install the beta version of the SDKs and CLI:
Getting sandbox metrics
Getting the metrics of a sandbox returns an array of timestamped metrics containing CPU and memory usage information. The metrics are collected at the start of the sandbox, then every 2 seconds, and finally right before the sandbox is deleted.
Getting sandbox metrics using the SDKs
Getting sandbox metrics using the CLI
Bash
Limitations while in beta
- It may take a second or more to get the metrics after the sandbox is created. Until the logs are collected from the sandbox, you will get an empty array.