Add metrics to admission::RateLimiter component

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • N&O 2025-05-12
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      Add the following metrics to the admission::RateLimiter component:

          "totalAddedQueue": 20,
          "totalRemovedQueue": 10,
          "totalNewAdmissions": 1000,
          "averageTimeQueuedMicros": 10,
          "totalAvailableTokens": 0, 

      And ensure that they are output in the "queues" server status section under a new "connectionEstablishment" subheader.

       

      The "averageTimeQueuedMicros" should use an exponentially weighted moving average formula, as defined here (and it would be nice if this was added in a util so that we can share it in the future): https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.md#calculation-of-average-round-trip-times 

            Assignee:
            David Goffredo
            Reporter:
            Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: