Add serverStatus metrics for pre-images sampling

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: Change streams
    • None
    • Query Execution
    • Fully Compatible
    • QE 2026-04-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Adds the following cumulative, process-wide serverStatus metrics for change streams pre-images collection sampling:

      • changeStreamPreImages.markerCreation.totalPass: total number of pre-image sampling passes. On ASC, the pre-images sampling is supposed to happen shortly after node start, on all node types of a cluster (primary and secondaries). The pre-images are typically not resampled during the lifetime of a node. On DSC, pre-images sampling happens on every node step-up as a primary. Sampling can happen multiple times during the lifetime of a node.
      • changeStreamPreImages.markerCreation.scannedInternalCollections: total number of user collection UUID ranges sampled in the system pre-images collection. When a sampling pass occurs, this metric is typically increased by the number of user collections that have change streams pre-images enabled and contain active pre-images.
      • changeStreamPreImages.markerCreation.timeElapsedMillis: cumulated number of milliseconds spent on pre-images sampling.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: