Skip to content

Commit c1c6ceb

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-15974-change-stream-metrics (#3115)
* DOCS-15974-change-stream-metrics * DOCS-15974-change-stream-metrics * DOCS-15974-change-stream-metrics * DOCS-15974-change-stream-metrics --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 9f39bb0 commit c1c6ceb

File tree

2 files changed

+39
-4
lines changed

2 files changed

+39
-4
lines changed

source/reference/command/serverStatus.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,6 +1525,10 @@ metrics
15251525
aggStageCounters : {
15261526
<aggregation stage> : Long("<num>")
15271527
},
1528+
changeStreams: {
1529+
largeEventsFailed: Long("<num>"),
1530+
largeEventsSplit: Long("<num>")
1531+
},
15281532
commands: {
15291533
<command>: {
15301534
failed: Long("<num>"),
@@ -1849,6 +1853,30 @@ metrics
18491853

18501854
.. versionadded:: 5.1
18511855

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+
18521880
.. serverstatus:: metrics.commands
18531881

18541882
A document that reports on the use of database commands. The fields

source/release-notes/7.0.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,21 @@ Starting in MongoDB 7.0, the :dbcommand:`currentOp` command and the
2525

2626
- :data:`currentOp.admissionPriority`
2727

28-
``$changeStreamSplitLargeEvent`` Pipeline Stage
29-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28+
Large Change Stream Events
29+
~~~~~~~~~~~~~~~~~~~~~~~~~~
3030

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
3333
:pipeline:`$changeStreamSplitLargeEvent` stage to split the events into
3434
smaller fragments.
3535

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+
3643
New Parameters
3744
~~~~~~~~~~~~~~
3845

0 commit comments

Comments
 (0)