@@ -3690,6 +3690,55 @@ oplogTruncation
3690
3690
3691
3691
Available in the :doc:`/core/wiredtiger`.
3692
3692
3693
+ .. _server-status-queryStats:
3694
+
3695
+ queryStats
3696
+ ~~~~~~~~~~
3697
+
3698
+ .. versionadded:: 6.0.7
3699
+
3700
+ .. code-block:: javascript
3701
+
3702
+ queryStats: {
3703
+ numEvicted: Long("<num>"),
3704
+ numRateLimitedRequests: Long("<num>"),
3705
+ queryStatsStoreSizeEstimateBytes: Long("<num>"),
3706
+ numQueryStatsStoreWriteErrors: Long("<num>"),
3707
+ numHmacApplicationErrors: Long("<num>")
3708
+ },
3709
+
3710
+ .. serverstatus:: queryStats
3711
+
3712
+ A document that contains metrics for the :pipeline:`$queryStats`
3713
+ aggregation stage.
3714
+
3715
+ .. serverstatus:: queryStats.numEvicted
3716
+
3717
+ Number of queries that the ``$queryStats`` virtual collection has
3718
+ evicted due to space contraints.
3719
+
3720
+ .. serverstatus:: queryStats.numRateLimitedRequests
3721
+
3722
+ Number of times that query stats were not recorded for a query due to
3723
+ rate limiting.
3724
+
3725
+ .. serverstatus:: queryStats.queryStatsStoreSizeEstimateBytes
3726
+
3727
+ Current estimated size of objects in the ``$queryStats`` virtual
3728
+ collection.
3729
+
3730
+ .. serverstatus:: queryStats.numQueryStatsStoreWriteErrors
3731
+
3732
+ Number of times this MongoDB process failed to store a new query
3733
+ stats key. Generally, these failures happen when the
3734
+ ``$queryStats`` virtual collection runs out of space.
3735
+
3736
+ .. serverstatus:: queryStats.numHmacApplicationErrors
3737
+
3738
+ Number of times this MongoDB process failed to compute a one-way
3739
+ tokenized query stats key when ``$queryStats`` was called with the
3740
+ ``transformIdentifiers`` option.
3741
+
3693
3742
.. _server-status-readConcernCounters:
3694
3743
3695
3744
readConcernCounters
@@ -6328,4 +6377,3 @@ writeBacksQueued
6328
6377
A boolean that indicates whether there are operations from a
6329
6378
:binary:`~bin.mongos` instance queued for retrying. Typically, this
6330
6379
value is false. See also :term:`writeBacks`.
6331
-
0 commit comments