Skip to main content
GET
Get Database Stats

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the database

Query Parameters

period
string
default:1h

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.

Response

200 - application/json

Database stats retrieved successfully

monitor_count
object

Monitor count

daily_net_commands
integer

Total number of commands executed today

Example:

7

daily_read_requests
integer

Total number of read requests executed today

Example:

7

daily_write_requests
integer

Total number of write requests executed today

Example:

0

connection_count
object[]

Connection count over time

Example:
keyspace
object[]

Total number of keys in the database over time

Example:
throughput
object[]

Throughput on database connections over time

Example:
diskusage
object[]

Disk usage over time

Example:
latency_p50
object[]

Median (p50) latency over time

Example:
latencymean
object[]

Deprecated alias of latency_p50, kept for older clients. Carries the median, not the mean.

Example:
latency_99
object[]

99th percentile latency over time

Example:
read_latency_p50
object[]

Median (p50) read latency over time

Example:
read_latency_mean
object[]

Deprecated alias of read_latency_p50, kept for older clients. Carries the median, not the mean.

Example:
read_latency_99
object[]

99th percentile read latency over time

Example:
write_latency_p50
object[]

Median (p50) write latency over time

Example:
write_latency_mean
object[]

Deprecated alias of write_latency_p50, kept for older clients. Carries the median, not the mean.

Example:
write_latency_99
object[]

99th percentile write latency over time

Example:
hits
object[]

Cache hits over time

Example:
misses
object[]

Cache misses over time

Example:
read
object[]

Read requests over time

Example:
write
object[]

Write requests over time

Example:
dailyrequests
object[]

Daily requests over time

Example:
days
string[]

Days of the week for measurement

Example:
dailybilling
object[]

Daily billing amounts over time

Example:
dailybandwidth
integer

Total daily bandwidth usage in bytes

Example:

50444740913

bandwidths
object[]

Bandwidth usage over time

Example:
total_monthly_bandwidth
integer

Total bandwidth used in current month (bytes)

Example:

7

total_monthly_requests
integer

Total requests in current month

Example:

7

total_monthly_read_requests
integer

Total read requests in current month

Example:

7

total_monthly_write_requests
integer

Total write requests in current month

Example:

0

total_monthly_script_requests
integer
deprecated

Deprecated, always 0. Use daily_script_commands from the Prometheus integration

Example:

0

queue_optimized
boolean

Whether queue optimization is enabled for the database

Example:

false

total_monthly_storage
integer

Total storage used in current month (bytes)

Example:

0

current_storage
integer

Current storage used (bytes)

Example:

0

total_monthly_billing
number<float>

Total cost in current month

Example:

222.33902763855485

rest_conn_count
object[]

Open REST connections over time

Example:
latency_p90
object[]

Overall 90th percentile latency over time, Pro and Production Pack only

Example:
command_latency_p50
object[]

Median time the engine spent executing commands, Pro and Production Pack only

Example:
command_latency_99
object[]

99th percentile time the engine spent executing commands, Pro and Production Pack only

Example:
wait_latency_99
object[]

99th percentile time commands waited for the execution lock, Pro and Production Pack only

Example:
disk_load_latency_99
object[]

99th percentile time to load a key from disk, Pro and Production Pack only

Example:
disk_loads
object[]

Keys loaded from disk per ten-minute window, Pro and Production Pack only

Example:
lua_latency_p50
object[]

Median Lua script latency over time, Pro and Production Pack only

Example:
lua_latency_99
object[]

99th percentile Lua script latency over time, Pro and Production Pack only

Example:
lua_scripts
object[]

Most executed Lua scripts since midnight UTC, Pro and Production Pack only

lua_script_count
number

Number of distinct Lua scripts run since midnight UTC, Pro and Production Pack only

slow_commands
object[]

Commands that exceeded the slow threshold today, Pro and Production Pack only

acl_user_logins
object[]

Logins per ACL user today, Pro and Production Pack only

command_counts
object[]

Command-specific counts over time

Example: