Change output format of HistogramServerStatusMetric to be t2 friendly

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, HistogramServerStatusMetric outputs metrics as

      [
      [lowerBound, count]
      [lowerBound, count]
      ...
      ]
      

      This wastes space in FTDC
      1. Each lowerBound is a constant and still eats at least 2 bytes (compression offsets this a little but there are many of these in FTDC

      For T2, these are difficult to display
      1. It lacks upperBound
      2. Requires complicated pivot to process in t2
      3. For unknown FTDC metrics (before t2 learns about them), they are difficult to understand without understanding how the code works.

      Proposed changes:
      1. Output metrics as a document instead of array
      2. Embed lower and upper bound in name of metric like WT does.

      Example:

      
      
      { "wt block manager read latency histogram (bucket 1) - 0-250us" : 1 "wt block manager read latency histogram (bucket 2) - 250-499us" : 1 ... }

            Assignee:
            Mark Benvenuto
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: