serverStatus should allow fine-grained metrics exclusion

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 6.0.0-rc0, 5.0.9, 4.4.15
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v5.3, v5.0, v4.4
    • QO 2022-04-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Motivated by work on SERVER-63642, we would like to exclude some serverStatus metrics from FTDC collection. This is not possible with the current serverStatus command which only allows excluding top-level sections/keys from the output. The result of implementing this task is that we would be able to exclude arbitrarily nested elements from the metrics output.

      Before this change, serverStatus() accepts an argument which excludes top-level sections, eg

      {replication: false}
       

      . this change allows detailed exclusion of metrics, eg

      {metrics: {query: {multiPlanner: {histograms: false}}}}
      

      . both individual fields/metrics and objects/branches can be excluded

              Assignee:
              Jess Balint
              Reporter:
              Jess Balint
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: