Skip to content

Commit 1b1a6d4

Browse files
author
Dave
authored
DOCS-14895 BACKPORT (#727)
* DOCSP-14895-BACKPORT * typo
1 parent fabdedb commit 1b1a6d4

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

source/reference/command/serverStatus.txt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4161,12 +4161,24 @@ metrics
41614161

41624162
*New in version 4.4 (4.2.6 and 4.0.19).*
41634163

4164+
.. serverstatus:: metrics.operatorCounters.expressions
4165+
4166+
A document with a number that indicates how often
4167+
:ref:`aggregation-expression-operators` ran.
4168+
4169+
To get metrics for a specific operator, such as the greater-than
4170+
operator (:expression:`$gt`), append the operator to the command:
4171+
4172+
.. code-block:: javascript
4173+
4174+
db.runCommand( { serverStatus: 1 } ).metrics.operatorCounters.expressions.$gt
4175+
4176+
*Updated in version 4.4.13*
4177+
41644178
.. serverstatus:: metrics.operatorCounters.match
41654179

41664180
A document with a number that indicates how often
4167-
:ref:`match expressions <query-projection-operators-top>` ran. For
4168-
some operators, the number reported is a multiple of the times the
4169-
operator actually ran.
4181+
:ref:`match expressions <query-projection-operators-top>` ran.
41704182

41714183
:ref:`Match expression operators <query-projection-operators-top>`
41724184
also increment as part of an aggregation pipeline :pipeline:`$match`

0 commit comments

Comments
 (0)