-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
QE 2026-07-20
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Add the following histogram metrics for change stream aggregate / getMore commands:
- metrics.changeStreams.option.cursor.batchSize, with bucket boundaries: 1, 10, 100, 1000, 10_000
- metrics.changeStreams.option.cursor.maxTimeMS, with bucket boundaries 100, 200, 500, 1_000, 2_000, 5_000, 10_000, 20_000, 50_000, 100_000, 200_000, 500_000, 1_000_000
These metrics are tracked on the process level on both mongos and mongod.
The maxTimeMS metric will only be tracked for change stream aggregate / getMore commands for which a maxTimeMS value is actually set on the command.
The batchSize metric will only be incremented for change stream getMore commands if a batchSize value is set on the command. For change stream aggregate commands, not setting a batchSize value on the command will lead to a backfill value being used for the command. The batchSize metric will be increased for the corresponding bucket then. Note that this backfill value is currently 101, but this may change in future version and thus the exact backfill value should not be relied on and thus not documented as an immutable feature.
- duplicates
-
SERVER-130292 Add change-stream process-level cursor-option histograms (mongoD + mongoS)
-
- Closed
-
- is related to
-
SERVER-128190 Add Process-Level Feature Usage Counters for Change Streams in MongoD
-
- Closed
-
-
SERVER-130702 Add Process-Level Feature Usage Counters for Change Streams in MongoS
-
- Closed
-