Extend change stream cursor serverStatus metrics on mongoD

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-03-30
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Add two new change stream cursor stats to serverStatus output on mongoD:

      • metrics.changeStreams.cursor.totalOpened (counter)
        • Cumulative number of change stream cursors opened on the shard process.
        • This metric can be used to calculate change stream cursor opening rate. A constantly high rate indicates possible improper use or other problems.
      • metrics.changeStreams.cursor.lifespanMicros.avg (gauge)
        • Average change stream cursor lifespan (duration in microseconds between opening and closing) on the shard process.
        • Many short-lived cursors and many resumes might indicate improper use or other problems.

            Assignee:
            Romans Kasperovics
            Reporter:
            Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: