Docs Menu
Docs Home
MongoDB Database Tools

mongostat Behavior, Access, and Usage

On this page

  • Behavior
  • Required Access
  • Learn More

mongostat 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 with the --auth option, specify the --username and --password options, and the connecting user must have the serverStatus privilege action on the cluster resources.

The built-in role clusterMonitor provides this privilege as well as other privileges. To create a role with just the privilege to run mongostat, see Create a Role to Run mongostat.

← mongostat Compatibility and Installation