Skip to content

Commit a79cf65

Browse files
jwilliams-mongokay-kim
authored andcommitted
DOCS-13372: Add statistics metrics.repl.network.oplogGetMoresProcessed
1 parent 2b6cad1 commit a79cf65

File tree

3 files changed

+44
-8
lines changed

3 files changed

+44
-8
lines changed

source/includes/extracts-server-status-projection-base.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ content: |
5454
5555
- Added new sync source metrics in :serverstatus:`metrics.repl`:
5656
57+
- :serverstatus:`metrics.repl.network.oplogGetMoresProcessed`
58+
59+
- :serverstatus:`metrics.repl.network.oplogGetMoresProcessed.num`
60+
61+
- :serverstatus:`metrics.repl.network.oplogGetMoresProcessed.totalMillis`
62+
5763
- :serverstatus:`metrics.repl.network.replSetUpdatePosition.num`
5864
5965
- :serverstatus:`metrics.repl.syncSource.numSelections`

source/reference/command/serverStatus.txt

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,10 +1791,10 @@ opcounters
17911791

17921792
.. serverstatus:: opcounters.getmore
17931793

1794-
The total number of "getmore" operations since the :binary:`~bin.mongod`
1795-
instance last started. This counter can be high even if the query
1796-
count is low. Secondary nodes send ``getMore`` operations as part of
1797-
the replication process.
1794+
The total number of :dbcommand:`getMore` operations since the
1795+
:binary:`~bin.mongod` instance last started. This counter can be high
1796+
even if the query count is low. Secondary nodes send
1797+
:dbcommand:`getMore` operations as part of the replication process.
17981798

17991799
.. include:: /includes/extracts/4.2-changes-opcounters-type.rst
18001800

@@ -1876,10 +1876,10 @@ opcountersRepl
18761876

18771877
.. serverstatus:: opcountersRepl.getmore
18781878

1879-
The total number of "getmore" operations since the :binary:`~bin.mongod`
1880-
instance last started. This counter can be high even if the query
1881-
count is low. Secondary nodes send ``getMore`` operations as part of
1882-
the replication process.
1879+
The total number of :dbcommand:`getMore` operations since the
1880+
:binary:`~bin.mongod` instance last started. This counter can be high
1881+
even if the query count is low. Secondary nodes send
1882+
:dbcommand:`getMore` operations as part of the replication process.
18831883

18841884
.. include:: /includes/extracts/4.2-changes-opcountersRepl-type.rst
18851885

@@ -3963,6 +3963,10 @@ metrics
39633963
},
39643964
"notMasterLegacyUnacknowledgedWrites" : <NumberLong>,
39653965
"notMasterUnacknowledgedWrites" : <NumberLong>,
3966+
"oplogGetMoresProcessed" : {
3967+
"num" : <NumberLong>,
3968+
"totalMillis" : <NumberLong>
3969+
},
39663970
"ops" : <NumberLong>,
39673971
"readersCreated" : <NumberLong>,
39683972
"replSetUpdatePosition" : {
@@ -4328,6 +4332,29 @@ metrics
43284332

43294333
.. versionadded:: 4.2
43304334

4335+
.. serverstatus:: metrics.repl.network.oplogGetMoresProcessed
4336+
4337+
A document that reports the number of :dbcommand:`getMore`
4338+
commands to fetch the :term:`oplog` that a node processed as a sync
4339+
source.
4340+
4341+
.. versionadded:: 4.4
4342+
4343+
.. serverstatus:: metrics.repl.network.oplogGetMoresProcessed.num
4344+
4345+
The number of :dbcommand:`getMore` commands to fetch the
4346+
:term:`oplog` that a node processed as a sync source.
4347+
4348+
.. versionadded:: 4.4
4349+
4350+
.. serverstatus:: metrics.repl.network.oplogGetMoresProcessed.totalMillis
4351+
4352+
The time, in milliseconds, that a node spent processing the
4353+
:dbcommand:`getMore` commands counted in
4354+
:serverstatus:`metrics.repl.network.oplogGetMoresProcessed.num`.
4355+
4356+
.. versionadded:: 4.4
4357+
43314358
.. serverstatus:: metrics.repl.network.ops
43324359

43334360
The total

source/release-notes/4.4.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,6 +1489,9 @@ output:
14891489
* - |
14901490
| :serverstatus:`metrics.repl.network.replSetUpdatePosition.num`
14911491
| :serverstatus:`metrics.repl.network.getmores.numEmptyBatches`
1492+
| :serverstatus:`metrics.repl.network.oplogGetMoresProcessed`
1493+
| :serverstatus:`metrics.repl.network.oplogGetMoresProcessed.num`
1494+
| :serverstatus:`metrics.repl.network.oplogGetMoresProcessed.totalMillis`
14921495
| :serverstatus:`metrics.repl.syncSource.numSelections`
14931496
| :serverstatus:`metrics.repl.syncSource.numTimesChoseSame`
14941497
| :serverstatus:`metrics.repl.syncSource.numTimesChoseDifferent`

0 commit comments

Comments
 (0)