diff --git a/source/reference/command/serverStatus.txt b/source/reference/command/serverStatus.txt index 3738ff293a5..b3eb1c2215d 100644 --- a/source/reference/command/serverStatus.txt +++ b/source/reference/command/serverStatus.txt @@ -4619,6 +4619,12 @@ metrics "wtimeouts" : NumberLong() } }, + "mongos" : { + "cursor" : { + "moreThanOneBatch" : NumberLong(), + "totalOpened" : NumberLong() + } + }, "operation" : { "scanAndOrder" : NumberLong(), "writeConflicts" : NumberLong() @@ -4879,7 +4885,33 @@ metrics Number of times a non-``clientSupplied`` write concern timed out. +.. _server-status-metrics-mongos: + +.. serverstatus:: metrics.mongos + + A document that contains metrics about :binary:`~bin.mongos`. + +.. serverstatus:: metrics.mongos.cursor + + A document that contains metrics for cursors used by + :binary:`~bin.mongos`. + +.. serverstatus:: metrics.mongos.cursor.moreThanOneBatch + The total number of cursors that have returned more than one batch + since :binary:`~bin.mongos` started. Additional batches are retrieved + using the :dbcommand:`getMore` command. + + .. versionadded:: 5.0 + +.. serverstatus:: metrics.mongos.cursor.totalOpened + + The total number of cursors that have been opened since + :binary:`~bin.mongos` started, including cursors currently open. + Differs from :serverstatus:`metrics.cursor.open.total`, which is the + number of currently open cursors only. + + .. versionadded:: 5.0 .. serverstatus:: metrics.operation diff --git a/source/release-notes/5.0.txt b/source/release-notes/5.0.txt index 779e132588e..a5f249af413 100644 --- a/source/release-notes/5.0.txt +++ b/source/release-notes/5.0.txt @@ -371,12 +371,17 @@ output: Cursor Metrics .. list-table:: - * - | :serverstatus:`metrics.cursor.moreThanOneBatch`, which - reports the total number of cursors that have returned - more than one batch (additional batches are retrieved - using the :dbcommand:`getMore` command) - | :serverstatus:`metrics.cursor.totalOpened`, which reports - the total number of cursors that have been opened + * - | :serverstatus:`metrics.cursor.moreThanOneBatch` and + :serverstatus:`metrics.mongos.cursor.moreThanOneBatch`, + which report the total number of cursors that have + returned more than one batch on :binary:`~bin.mongod` and + :binary:`~bin.mongos` respectively (additional batches + are retrieved using the :dbcommand:`getMore` command) + | :serverstatus:`metrics.cursor.totalOpened` and + :serverstatus:`metrics.mongos.cursor.totalOpened`, which + report the total number of cursors that have been opened + on :binary:`~bin.mongod` and :binary:`~bin.mongos` + respectively .. _5.0-rel-notes-shell: