Skip to content

Commit f945994

Browse files
committed
DOCS-12189: serverStatus transactions.prepared metrics
1 parent 4e600d7 commit f945994

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

source/reference/command/serverStatus.txt

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,12 @@ transactions
12891289
"currentOpen" : <NumberLong>,
12901290
"totalAborted" : <NumberLong>,
12911291
"totalCommitted" : <NumberLong>,
1292-
"totalStarted" : <NumberLong>
1292+
"totalStarted" : <NumberLong>,
1293+
"totalPrepared" : <NumberLong>,
1294+
"totalPreparedThenCommitted" : <NumberLong>,
1295+
"totalPreparedThenAborted" : <NumberLong>,
1296+
"currentPrepared" : <NumberLong>,
1297+
"oldestActiveOplogEntryTimestamp" : <Timestamp>
12931298
},
12941299

12951300
.. serverstatus:: transactions
@@ -1393,6 +1398,42 @@ transactions
13931398

13941399
.. versionadded:: 4.0.2
13951400

1401+
.. serverstatus:: transactions.totalPrepared
1402+
1403+
The total number of transactions in prepared state on this server
1404+
since the :binary:`mongod <bin.mongod>` process's last startup.
1405+
1406+
.. versionadded:: 4.2
1407+
1408+
.. serverstatus:: transactions.totalPreparedThenCommitted
1409+
1410+
The total number of transactions that were prepared and committed on
1411+
this server since the :binary:`mongod <bin.mongod>` process's last
1412+
startup.
1413+
1414+
.. versionadded:: 4.2
1415+
1416+
.. serverstatus:: transactions.totalPreparedThenAborted
1417+
1418+
The total number of transactions that were prepared and aborted on
1419+
this server since the :binary:`mongod <bin.mongod>` process's last
1420+
startup.
1421+
1422+
.. versionadded:: 4.2
1423+
1424+
.. serverstatus:: transactions.currentPrepared
1425+
1426+
The current number of transactions in prepared state on this server.
1427+
1428+
.. versionadded:: 4.2
1429+
1430+
.. serverstatus:: transactions.oldestActiveOplogEntryTimestamp
1431+
1432+
The optime of the oldest oplog entry associated with an active
1433+
transaction.
1434+
1435+
.. versionadded:: 4.2
1436+
13961437
.. _server-status-wiredTiger:
13971438

13981439
wiredTiger

0 commit comments

Comments
 (0)