Get Database Stats
This endpoint gets detailed stats of a database.
1 min read
get/redis/stats/{id}
Request example
Response
get/redis/stats/{id}
Authorization
Path parameters
The ID of the database
Query parameters
Period the time series cover: 1h, 3h, 12h, 1d, 3d, 7d or 30d. Defaults to 1h. 30d is only available for databases on a Pro plan or with the Production Pack.
Default: "1h"
Responses
application/json
200
Database stats retrieved successfully
Total number of commands executed today
Total number of read requests executed today
Total number of write requests executed today
Deprecated alias of latency_p50, kept for older clients. Carries the median, not the mean.
Deprecated alias of read_latency_p50, kept for older clients. Carries the median, not the mean.
Deprecated alias of write_latency_p50, kept for older clients. Carries the median, not the mean.
Days of the week for measurement
Total daily bandwidth usage in bytes
Total bandwidth used in current month (bytes)
Total requests in current month
Total read requests in current month
Total write requests in current month
Deprecated, always 0. Use daily_script_commands from the Prometheus integration
Whether queue optimization is enabled for the database
Total storage used in current month (bytes)
Current storage used (bytes)
Total cost in current month
Median time the engine spent executing commands, Pro and Production Pack only
99th percentile time the engine spent executing commands, Pro and Production Pack only
99th percentile time commands waited for the execution lock, Pro and Production Pack only
99th percentile time to load a key from disk, Pro and Production Pack only
Number of distinct Lua scripts run since midnight UTC, Pro and Production Pack only