Maintenance May 12, 8–9 PM PDT (May 13, 03:00–04:00 UTC). ~1 min disruption to sandbox management may occur. Already running sandboxes will not be affected. Questions? Contact us
Maintenance May 12, 8–9 PM PDT (May 13, 03:00–04:00 UTC). ~1 min disruption to sandbox management may occur. Already running sandboxes will not be affected. Questions? Contact us
Get sandbox metrics
curl --request GET \
--url https://api.e2b.app/sandboxes/{sandboxID}/metrics \
--header 'X-API-Key: <api-key>'[
{
"timestamp": "2023-11-07T05:31:56Z",
"timestampUnix": 123,
"cpuCount": 123,
"cpuUsedPct": 123,
"memUsed": 123,
"memTotal": 123,
"memCache": 123,
"diskUsed": 123,
"diskTotal": 123
}
]Documentation Index
Fetch the complete documentation index at: https://e2b-banner-hover-tooltip.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Unix timestamp for the start of the interval, in seconds, for which the metrics are returned.
x >= 0Unix timestamp for the end of the interval, in seconds, for which the metrics are returned.
x >= 0Successfully returned the sandbox metrics
Timestamp of the metric entry
Timestamp of the metric entry in Unix time (seconds since epoch)
Number of CPU cores
CPU usage percentage
Memory used in bytes
Total memory in bytes
Cached memory (page cache) in bytes
Disk used in bytes
Total disk space in bytes
Was this page helpful?
curl --request GET \
--url https://api.e2b.app/sandboxes/{sandboxID}/metrics \
--header 'X-API-Key: <api-key>'[
{
"timestamp": "2023-11-07T05:31:56Z",
"timestampUnix": 123,
"cpuCount": 123,
"cpuUsedPct": 123,
"memUsed": 123,
"memTotal": 123,
"memCache": 123,
"diskUsed": 123,
"diskTotal": 123
}
]