Features
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Features
editOperation Statistics
editThe collstats metricset uses the top administrative command to return usage statistics for each collection. It provides the amount of time, in microseconds, used and a count of operations for the following types:
- total
- readLock
- writeLock
- queries
- getmore
- insert
- update
- remove
- commands
It requires the following privileges, which is covered by the clusterMonitor role:
-
topaction onclusterresource -
collStatsaction on collection resources -
aggregateaction on collection resources (for MongoDB 6.2+)
On mongos routers, the top command is not available. In such cases, only storage statistics are populated. Operation counters (for example: total, read, write, and query) may be absent.