Skip to content

Commit 7977a5a

Browse files
authored
DOCSP-24323: directShardOperations req for mongostat (#190)
* DOCSP-24323 directShardOperations req for mongostat
1 parent d59be72 commit 7977a5a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

source/mongostat/mongostat-behavior.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,21 @@ with the :option:`--auth <mongod.--auth>` option, specify the
3939
<mongostat --password>` options, and the connecting user must have the
4040
:authaction:`serverStatus` privilege action on the cluster resources.
4141

42-
The built-in role :authrole:`clusterMonitor` provides this privilege as
43-
well as other privileges. To create a role with just the privilege to
44-
run ``mongostat``, see :ref:`create-role-for-mongostat`.
42+
.. important::
43+
44+
Starting in MongoDB 8.0, to use ``mongostat`` to connect to a
45+
sharded cluster, the user must also have the
46+
:authrole:`directShardOperations` role.
47+
48+
The built-in role :authrole:`clusterMonitor` provides the
49+
:authaction:`serverStatus` privilege as well as other
50+
privileges. To create a role with just the privilege to run
51+
``mongostat``, see :ref:`create-role-for-mongostat`.
4552

4653

4754
Learn More
4855
----------
4956

5057
- :ref:`mongostat`
5158
- :ref:`mongostat-compatibility-and-installation`
52-
- :ref:`mongostat-examples`
59+
- :ref:`mongostat-examples`

0 commit comments

Comments
 (0)