Skip to main content
GET
Get Database Metrics
string
required
The API key for your account. You can find this in your account settings.
Returns historical CPU, RAM and network usage for a database, sampled every 5 minutes over the last 24 hours (up to 288 points). Use it to plot usage graphs or to decide whether the database needs more memory before calling Edit Database. For a single current reading instead of a time series, use Get Database Status. Responses are cached for 2.5 minutes per user and database, and the endpoint is rate limited to 10 requests per 5 seconds per user, with a 60-second block once that cap is hit. A database with no recent samples returns an empty array rather than an error.

Parameters

string
required
The ID of the database.

Response

string
Indicates whether the call was successful.. success if successful, error if not.
array
The contents of the response.

Common errors