@@ -4594,6 +4594,15 @@ metrics
45944594 "moreThanOneBatch" : NumberLong(<num>),
45954595 "timedOut" : NumberLong(<num>),
45964596 "totalOpened" : NumberLong(<num>),
4597+ "lifespan" : {
4598+ "greaterThanOrEqual10Minutes" : NumberLong(<num>),
4599+ "lessThan10Minutes" : NumberLong(<num>),
4600+ "lessThan15Seconds" : NumberLong(<num>),
4601+ "lessThan1Minute" : NumberLong(<num>),
4602+ "lessThan1Second" : NumberLong(<num>),
4603+ "lessThan30Seconds" : NumberLong(<num>),
4604+ "lessThan5Seconds" : NumberLong(<num>)
4605+ },
45974606 "open" : {
45984607 "noTimeout" : NumberLong(<num>),
45994608 "pinned" : NumberLong(<num>),
@@ -5282,6 +5291,76 @@ metrics
52825291
52835292 .. versionadded:: 5.0
52845293
5294+ .. _server-status-metrics-cursor-lifespan:
5295+
5296+ .. serverstatus:: metrics.cursor.lifespan
5297+
5298+ A document that reports the number of cursors that have lifespans
5299+ within specified time periods. The cursor lifespan is the time period
5300+ from when the cursor is created to when the cursor is killed using
5301+ the :dbcommand:`killCursors` command or the cursor has no remaining
5302+ objects in the :ref:`batch <cursor-batches>`.
5303+
5304+ The lifespan time periods are:
5305+
5306+ - < 1 second
5307+
5308+ - >= 1 second to < 5 seconds
5309+
5310+ - >= 5 seconds to < 15 seconds
5311+
5312+ - >= 15 seconds to < 30 seconds
5313+
5314+ - >= 30 seconds to < 1 minute
5315+
5316+ - >= 1 minute to < 10 minutes
5317+
5318+ - >= 10 minutes
5319+
5320+ .. versionadded:: 5.0
5321+
5322+ .. serverstatus:: metrics.cursor.lifespan.greaterThanOrEqual10Minutes
5323+
5324+ The number of cursors with a lifespan >= 10 minutes.
5325+
5326+ .. versionadded:: 5.0
5327+
5328+ .. serverstatus:: metrics.cursor.lifespan.lessThan10Minutes
5329+
5330+ The number of cursors with a lifespan >= 1 minute to < 10 minutes.
5331+
5332+ .. versionadded:: 5.0
5333+
5334+ .. serverstatus:: metrics.cursor.lifespan.lessThan15Seconds
5335+
5336+ The number of cursors with a lifespan >= 5 seconds to < 15 seconds.
5337+
5338+ .. versionadded:: 5.0
5339+
5340+ .. serverstatus:: metrics.cursor.lifespan.lessThan1Minute
5341+
5342+ The number of cursors with a lifespan >= 30 seconds to < 1 minute.
5343+
5344+ .. versionadded:: 5.0
5345+
5346+ .. serverstatus:: metrics.cursor.lifespan.lessThan1Second
5347+
5348+ The number of cursors with a lifespan < 1 second.
5349+
5350+ .. versionadded:: 5.0
5351+
5352+ .. serverstatus:: metrics.cursor.lifespan.lessThan30Seconds
5353+
5354+ The number of cursors with a lifespan >= 15 seconds to < 30 seconds.
5355+
5356+ .. versionadded:: 5.0
5357+
5358+ .. serverstatus:: metrics.cursor.lifespan.lessThan5Seconds
5359+
5360+ The number of cursors with a lifespan >= 1 second to < 5 seconds.
5361+
5362+ .. versionadded:: 5.0
5363+
52855364.. serverstatus:: metrics.cursor.open
52865365
52875366 A document that contains data regarding open cursors.
0 commit comments