IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Features

edit

Operation Statistics

edit

The 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:

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.