For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

mongotop Behavior, Access, and Usage

The mongotop program uses the top command to collect data. However, while top returns cumulative usage statistics, mongotop resets the usage statistics for each polling interval.

mongotop automatically creates FIPS-compliant connections to a mongod/mongos that is configured to use FIPS mode.

In order to connect to a mongod that enforces authorization, the connecting user must have the serverStatus and top privileges.

The built-in role clusterMonitor provides these privileges.

mongotop has the following limitations when run against an Atlas Infinite Database cluster:

  • Running mongotop with the --locks option against an Atlas Infinite Database cluster returns an error instead of usage statistics.

  • Running mongotop without the --locks option against an Atlas Infinite Database cluster continues to work, but the output may have incomplete information.