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: |
8
8
- :ref:`server-status-mirroredReads` document.
9
9
10
10
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.
14
14
...
Original file line number Diff line number Diff line change @@ -61,13 +61,21 @@ Behavior
61
61
62
62
.. include:: /includes/extracts/serverStatus-command-projection.rst
63
63
64
- For example, the following operation suppresses the ``repl``,
64
+ For example, the following operation excludes the ``repl``,
65
65
``metrics`` and ``locks`` information in the output.
66
66
67
67
.. code-block:: javascript
68
68
69
69
db.runCommand( { serverStatus: 1, repl: 0, metrics: 0, locks: 0 } )
70
70
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
+
71
79
The following example includes
72
80
all :ref:`server-status-repl` information in the output:
73
81
You can’t perform that action at this time.
0 commit comments