File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ content: |
88 - :ref:`server-status-mirroredReads` document.
99
1010 To include fields that are excluded by default, specify the top-level
11- field and set it to ``1`` in the command. To exclude fields that are
12- included by default, specify the top-level field and set to ``0`` in
13- the command.
11+ field and set it to ``1`` in the command. To exclude fields that are included
12+ by default, specify the field and set to 0. You can specify either top-level
13+ or embedded fields.
1414 ...
Original file line number Diff line number Diff line change @@ -61,13 +61,21 @@ Behavior
6161
6262.. include:: /includes/extracts/serverStatus-command-projection.rst
6363
64- For example, the following operation suppresses the ``repl``,
64+ For example, the following operation excludes the ``repl``,
6565``metrics`` and ``locks`` information in the output.
6666
6767.. code-block:: javascript
6868
6969 db.runCommand( { serverStatus: 1, repl: 0, metrics: 0, locks: 0 } )
7070
71+
72+ For example, the following operation excludes the embedded ``histogram``
73+ field in the output.
74+
75+ .. code-block:: javascript
76+
77+ db.runCommand( { serverStatus: 1, metrics: { query: { multiPlanner: { histograms: false } } } } )
78+
7179The following example includes
7280all :ref:`server-status-repl` information in the output:
7381
You can’t perform that action at this time.
0 commit comments