Get Database Insights
Changed onThis endpoint returns the Insights series of a database: service latency percentiles, read, write, engine, replication, lock-wait and Lua latency, expired entries, replication lag, throughput, bandwidth and disk size, for the whole database, one replica or every region, with each series' latest window compared to the one before it, and how much the limit, security and Lua counters grew over the period. Latencies are in milliseconds. Available for databases on a Pro plan or with the Production Pack.
Request
- Base URLhttps://api.upstash.com/v2
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The ID of the database
Query parameters
The period of the series: 1h, 3h, 12h, 1d, 3d, 7d or 30d. Defaults to 3h.
Restrict the series to one replica, by the key of a group whose kind is replica. Other keys are rejected with 400.
Set to region to receive one series per region next to the total.
Response
Database insights retrieved successfully
Example response
{
"comparison_window": "3h"
}Changes
- info
endpoint added
- info