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

Do not include 'mongos' section of client info on mongos

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change

      In this example, you can see that the $queryStats stage returns information about the mongos:

      db.getSiblingDB("admin").aggregate([{$queryStats:{}},{$match: {"key.queryShape.cmdNs.coll":"config.monitoring.agentSessions","key.client.application.name":/Shell/,"key.$readPreference":null}},{$project:{"key.client.mongos":1}}]).pretty()
      {
      	"key" : {
      		"client" : {
      			"mongos" : {
      				"host" : "[atlas-d9q8oq-shard-00-01.yqitg.mmscloudteam.com:27016|http://atlas-d9q8oq-shard-00-01.yqitg.mmscloudteam.com:27016]",
      				"client" : "173.63.102.138:64387",
      				"version" : "7.2.0-rc1"
      			}
      		}
      	}
      }
      

      This includes IP addresses and ports which are likely too specific and high-cardinality, so we should remove this whole "mongos" section for the $queryStats output.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            memento@mongodb.com Memento Slack Bot
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: