Get the load history of servers
GET
/instances/servers/metrics/read Read: looks, changes nothing. Scopes
CPU, memory, network, streams and viewers over range, in time buckets (1 minute for 1h up to 2 hours for 30d; at most 360 points, oldest first). With server, that server's figures; without, all servers together (CPU averaged, the rest added up). A bucket with no sample is left out, so a chart shows a gap. Panel operators only.
Query parameters
rangestringHow far back to look. Sets the bucket width too.
1h- 1h6h- 6h24h- 24h7d- 7d30d- 30d
One of:
"1h""6h""24h""7d""30d"Default:
"1h"serverstring (uuid)One server's id. Omit for the whole fleet.
Response
200 OK
rangestringrequired1h- 1h6h- 6h24h- 24h7d- 7d30d- 30d
One of:
"1h""6h""24h""7d""30d"bucket_secondsintegerrequiredretention_daysintegerrequiredHow many days of history the panel keeps (Settings → Panel).
pointsobject[]requiredtstring (date-time)requiredStart of the bucket, UTC.
cpu_pctnumberrequiredcan be nullram_pctnumberrequiredcan be nullram_used_bytesintegerrequiredcan be nullram_total_bytesintegerrequiredcan be nullin_bpsintegerrequiredcan be nullInbound bits/sec.
out_bpsintegerrequiredcan be nullOutbound bits/sec.
streamsintegerrequiredcan be nullPeak running streams in the bucket.
sessionsintegerrequiredcan be nullPeak viewer sessions in the bucket.
Errors
- 400 Unknown
range, orserveris not a server id. - 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 404 No server has that id.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.