mongostat Behavior, Access, and Usage
On this page
Behavior
FIPS
mongostat
automatically creates FIPS-compliant
connections to a mongod
/mongos
that is
configured to use FIPS mode.
Required Access
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.