Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-357

Add metrics functionality

    • Type: Icon: Epic Epic
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 0.0.2
    • Component/s: Monitoring
    • Labels:

      Currently, the only way to extract metrics from the driver is to register for various events (e.g. command events, CMAP events) and calculate statistics in the event handlers.

      In addition, there are some statistics exposed by mgo that would not be possible to track even with the current set of events (e.g. total bytes in/out).

      This would be very useful for users of the driver for tracking purposes. Finally, if the driver had well designed, consistent statistics in areas, tracking bytes sent and received for purposes of analytics or billing would be vastly easier.

      The current requested metrics are:

      • total bytes in/out
        • per downstream, per API
      • commands (per API, per downstream)
      • connections (per downstream)
        • idle
        • total
        • in-use
      • latency distribution
        • per API, downstream
        • ideally with percentiles

            Assignee:
            Unassigned Unassigned
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: