-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
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.
- is depended on by
-
SERVER-85096 TRACKING: M3 Correctness Tickets
- Closed