Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-65271

serverStatus should allow fine-grained metrics exclusion

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 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

      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@mongodb.com Jess Balint
            Reporter:
            jess.balint@mongodb.com Jess Balint
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: