You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.1 version.
Commands: How to get database and server statistics?
There are two types of statistics available. First type of statistics returns server-wide information, the second one returns statistics for particular database.
Database statistics
Syntax
curl \
http://{serverName}/databases/{databaseName}/stats \
-X GET
Response
Status code | Description |
---|---|
200 |
OK |
Return Value | Description |
---|---|
DatabaseStatistics | Current statistics for a database that commands work on |
Server statistics
Syntax
curl \
http://{serverName}/admin/stats \
-X GET
Response
Status code | Description |
---|---|
200 |
OK |
Return Value | Description |
---|---|
AdminStatistics | Current statistics for a server |