Language
C# Java
Article For
3.5

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