File tree Expand file tree Collapse file tree 2 files changed +39
-4
lines changed Expand file tree Collapse file tree 2 files changed +39
-4
lines changed Original file line number Diff line number Diff line change @@ -1525,6 +1525,10 @@ metrics
1525
1525
aggStageCounters : {
1526
1526
<aggregation stage> : Long("<num>")
1527
1527
},
1528
+ changeStreams: {
1529
+ largeEventsFailed: Long("<num>"),
1530
+ largeEventsSplit: Long("<num>")
1531
+ },
1528
1532
commands: {
1529
1533
<command>: {
1530
1534
failed: Long("<num>"),
@@ -1849,6 +1853,30 @@ metrics
1849
1853
1850
1854
.. versionadded:: 5.1
1851
1855
1856
+ .. serverstatus:: metrics.changeStreams
1857
+
1858
+ A document that reports information about :ref:`change stream
1859
+ <changeStreams>` events larger than 16 MB.
1860
+
1861
+ .. versionadded:: 7.0
1862
+
1863
+ .. serverstatus:: metrics.changeStreams.largeEventsFailed
1864
+
1865
+ The number of change stream events that caused a
1866
+ ``BSONObjectTooLarge`` exception because the event was larger than 16
1867
+ MB. To prevent the exception, see
1868
+ :pipeline:`$changeStreamSplitLargeEvent`.
1869
+
1870
+ .. versionadded:: 7.0
1871
+
1872
+ .. serverstatus:: metrics.changeStreams.largeEventsSplit
1873
+
1874
+ The number of change stream events larger than 16 MB that were split
1875
+ into smaller fragments. Events are only split if you use the
1876
+ :pipeline:`$changeStreamSplitLargeEvent` pipeline stage.
1877
+
1878
+ .. versionadded:: 7.0
1879
+
1852
1880
.. serverstatus:: metrics.commands
1853
1881
1854
1882
A document that reports on the use of database commands. The fields
Original file line number Diff line number Diff line change @@ -25,14 +25,21 @@ Starting in MongoDB 7.0, the :dbcommand:`currentOp` command and the
25
25
26
26
- :data:`currentOp.admissionPriority`
27
27
28
- ``$changeStreamSplitLargeEvent`` Pipeline Stage
29
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28
+ Large Change Stream Events
29
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
30
30
31
- Starting in MongoDB 7.0, if you have large :ref:`change stream
32
- <changeStreams>` events that exceed 16 MB, you can use the new
31
+ Starting in MongoDB 7.0, if you have :ref:`change stream
32
+ <changeStreams>` events larger than 16 MB, you can use the new
33
33
:pipeline:`$changeStreamSplitLargeEvent` stage to split the events into
34
34
smaller fragments.
35
35
36
+ The following new metrics report information about large change stream
37
+ events:
38
+
39
+ - :serverstatus:`metrics.changeStreams`
40
+ - :serverstatus:`metrics.changeStreams.largeEventsFailed`
41
+ - :serverstatus:`metrics.changeStreams.largeEventsSplit`
42
+
36
43
New Parameters
37
44
~~~~~~~~~~~~~~
38
45
You can’t perform that action at this time.
0 commit comments