Add change stream cursor serverStatus metrics on mongoS (total_opened and lifespan)

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • QE 2026-03-30, QE 2026-04-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

      • metrics.changeStreams.cursor.totalOpened (counter)
        • Cumulative number of change stream cursors opened on the router 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 router process.
        • Many short-lived cursors and many resumes might indicate improper use or other problems.

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

              Created:
              Updated:
              Resolved: