Observability
Get sandbox stats
Returns an average and a time-series of CPU%, memory%, and network
bytes/sec for the requested lookback window. Server targets ~250 evenly
spaced data points; step interval adjusts with hoursAgo.
GET
/
sandboxes
/
{id}
/
stats
Get CPU / memory / network stats
curl --request GET \
--url https://sandbox.brimble.io/sandboxes/{id}/stats \
--header 'x-brimble-key: <api-key>'import requests
url = "https://sandbox.brimble.io/sandboxes/{id}/stats"
headers = {"x-brimble-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-brimble-key': '<api-key>'}};
fetch('https://sandbox.brimble.io/sandboxes/{id}/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.brimble.io/sandboxes/{id}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-brimble-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.brimble.io/sandboxes/{id}/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-brimble-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.brimble.io/sandboxes/{id}/stats")
.header("x-brimble-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.brimble.io/sandboxes/{id}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-brimble-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Sandbox stats fetched",
"data": {
"average": {
"memory": {
"totalInPercentage": 123,
"size": 123
},
"cpu": {
"totalInPercentage": 123,
"size": 123
},
"network": {
"value": 123,
"total": 123,
"totalInPercentage": 123,
"bytesPerSecond": 123
}
},
"replicaCount": 123,
"results": [
{
"date": "2023-11-07T05:31:56Z",
"memory": 123,
"cpu": 123,
"network": {
"bytesPerSecond": 123
}
}
],
"responseTime": {}
}
}Authorizations
Your account-level Brimble API key. Find it in the dashboard under your profile drawer → API key (click the avatar in the sidebar). Available on paid plans only.
Path Parameters
24-char hex id of the sandbox.
Pattern:
^[a-f0-9]{24}$Query Parameters
Lookback window in hours.
Required range:
x >= 1Last modified on May 20, 2026
Was this page helpful?
⌘I
Get CPU / memory / network stats
curl --request GET \
--url https://sandbox.brimble.io/sandboxes/{id}/stats \
--header 'x-brimble-key: <api-key>'import requests
url = "https://sandbox.brimble.io/sandboxes/{id}/stats"
headers = {"x-brimble-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-brimble-key': '<api-key>'}};
fetch('https://sandbox.brimble.io/sandboxes/{id}/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.brimble.io/sandboxes/{id}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-brimble-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.brimble.io/sandboxes/{id}/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-brimble-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.brimble.io/sandboxes/{id}/stats")
.header("x-brimble-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.brimble.io/sandboxes/{id}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-brimble-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Sandbox stats fetched",
"data": {
"average": {
"memory": {
"totalInPercentage": 123,
"size": 123
},
"cpu": {
"totalInPercentage": 123,
"size": 123
},
"network": {
"value": 123,
"total": 123,
"totalInPercentage": 123,
"bytesPerSecond": 123
}
},
"replicaCount": 123,
"results": [
{
"date": "2023-11-07T05:31:56Z",
"memory": 123,
"cpu": 123,
"network": {
"bytesPerSecond": 123
}
}
],
"responseTime": {}
}
}