heidsoft / devops

devops 经验总结实践与产品化
81 stars 44 forks source link

mongo #23

Open heidsoft opened 1 year ago

heidsoft commented 1 year ago

https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/

heidsoft commented 1 year ago

mongo 操作

test> db.fruit.insertOne({name:"apple"})
{
  acknowledged: true,
  insertedId: ObjectId("646395aa81b3c85a01a2ad46")
}
test> show collections;
fruit
test> db.fruit.find();
[ { _id: ObjectId("646395aa81b3c85a01a2ad46"), name: 'apple' } ]
test> db.fruit.find();
[ { _id: ObjectId("646395aa81b3c85a01a2ad46"), name: 'apple' } ]
test> db.fruit.drop();
true
test> db.fruit.find();

test> db.fruit.insertOne({name:"apple",from:{ country:"China",province:"Shanghai"}})
{
  acknowledged: true,
  insertedId: ObjectId("6463984f81b3c85a01a2ad47")
}
test> db.fruit.find();
[
  {
    _id: ObjectId("6463984f81b3c85a01a2ad47"),
    name: 'apple',
    from: { country: 'China', province: 'Shanghai' }
  }
]
test> db.fruit.find({"from.country":"Shanghai"});

test> db.fruit.find({"from.country":"Chine"});

test> db.fruit.find({"from.country":"China"});
[
  {
    _id: ObjectId("6463984f81b3c85a01a2ad47"),
    name: 'apple',
    from: { country: 'China', province: 'Shanghai' }
  }
]
test> db.fruit.find({"from": {country:"China"});
Uncaught:
SyntaxError: Unexpected token, expected "," (1:40)

> 1 | db.fruit.find({"from": {country:"China"});
    |                                         ^
  2 |

test> db.fruit.find({"from": {country:"China"}});

test> db.fruit.insert([{"name":"Apple",color:["red","green"]},]);
DeprecationWarning: Collection.insert() is deprecated. Use insertOne, insertMany, or bulkWrite.
{
  acknowledged: true,
  insertedIds: { '0': ObjectId("646399cf81b3c85a01a2ad48") }
}
test> db.fruit.find({"from": {country:"China"}});

test> db.fruit.find();
[
  {
    _id: ObjectId("6463984f81b3c85a01a2ad47"),
    name: 'apple',
    from: { country: 'China', province: 'Shanghai' }
  },
  {
    _id: ObjectId("646399cf81b3c85a01a2ad48"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  }
]
test> db.fruit.insert([{"name":"Apple",color:["red","green"]},{"name":"Mongo",color:["yellow","green"]}]);
{
  acknowledged: true,
  insertedIds: {
    '0': ObjectId("64639a1981b3c85a01a2ad49"),
    '1': ObjectId("64639a1981b3c85a01a2ad4a")
  }
}
test> db.fruit.find();
[
  {
    _id: ObjectId("6463984f81b3c85a01a2ad47"),
    name: 'apple',
    from: { country: 'China', province: 'Shanghai' }
  },
  {
    _id: ObjectId("646399cf81b3c85a01a2ad48"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  },
  {
    _id: ObjectId("64639a1981b3c85a01a2ad49"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  },
  {
    _id: ObjectId("64639a1981b3c85a01a2ad4a"),
    name: 'Mongo',
    color: [ 'yellow', 'green' ]
  }
]

test> db.fruit.find({color:"red"});
[
  {
    _id: ObjectId("646399cf81b3c85a01a2ad48"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  },
  {
    _id: ObjectId("64639a1981b3c85a01a2ad49"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  }
]
test> db.fruit.find({$or:[{color:"red"},{color:"yellow"}]});
[
  {
    _id: ObjectId("646399cf81b3c85a01a2ad48"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  },
  {
    _id: ObjectId("64639a1981b3c85a01a2ad49"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  },
  {
    _id: ObjectId("64639a1981b3c85a01a2ad4a"),
    name: 'Mongo',
    color: [ 'yellow', 'green' ]
  }
]

test> db.fruit.find()
[
  {
    _id: ObjectId("6463984f81b3c85a01a2ad47"),
    name: 'apple',
    from: { country: 'China', province: 'Shanghai' }
  },
  {
    _id: ObjectId("646399cf81b3c85a01a2ad48"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  },
  {
    _id: ObjectId("64639a1981b3c85a01a2ad49"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  },
  {
    _id: ObjectId("64639a1981b3c85a01a2ad4a"),
    name: 'Mongo',
    color: [ 'yellow', 'green' ]
  }
]
test>  db.fruit.find({name:"Mongo"},{_id:0,color:1});
[ { color: [ 'yellow', 'green' ] } ]
test>

test> db.fruit.updateOne({name:"apple"},{$set:{from:"China2"}});
{
  acknowledged: true,
  insertedId: null,
  matchedCount: 1,
  modifiedCount: 1,
  upsertedCount: 0
}
test> db.fruit.find()
[
  {
    _id: ObjectId("6463984f81b3c85a01a2ad47"),
    name: 'apple',
    from: 'China2'
  },
  {
    _id: ObjectId("646399cf81b3c85a01a2ad48"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  },
  {
    _id: ObjectId("64639a1981b3c85a01a2ad49"),
    name: 'Apple',
    color: [ 'red', 'green' ]
  },
  {
    _id: ObjectId("64639a1981b3c85a01a2ad4a"),
    name: 'Mongo',
    color: [ 'yellow', 'green' ]
  },
  { _id: ObjectId("64639d7a81b3c85a01a2ad4b"), name: 'apple' },
  { _id: ObjectId("64639d7a81b3c85a01a2ad4c"), name: 'pear' },
  { _id: ObjectId("64639d7a81b3c85a01a2ad4d"), name: 'orange' }
]
heidsoft commented 1 year ago

排序操作

test> db.restaurants.insertMany( [
...    { "_id" : 1, "name" : "Central Park Cafe", "borough" : "Manhattan"},
...    { "_id" : 2, "name" : "Rock A Feller Bar and Grill", "borough" : "Queens"},
...    { "_id" : 3, "name" : "Empire State Pub", "borough" : "Brooklyn"},
...    { "_id" : 4, "name" : "Stan's Pizzaria", "borough" : "Manhattan"},
...    { "_id" : 5, "name" : "Jane's Deli", "borough" : "Brooklyn"},
... ] );
{
  acknowledged: true,
  insertedIds: { '0': 1, '1': 2, '2': 3, '3': 4, '4': 5 }
}
test> show dbs
Employee     72.00 KiB
admin        40.00 KiB
config       48.00 KiB
local        72.00 KiB
rptutorials  72.00 KiB
test         40.00 KiB
test> show collections
restaurants
test> db.restaurants.find().sort( { "borough": 1 } )
[
  { _id: 3, name: 'Empire State Pub', borough: 'Brooklyn' },
  { _id: 5, name: "Jane's Deli", borough: 'Brooklyn' },
  { _id: 1, name: 'Central Park Cafe', borough: 'Manhattan' },
  { _id: 4, name: "Stan's Pizzaria", borough: 'Manhattan' },
  { _id: 2, name: 'Rock A Feller Bar and Grill', borough: 'Queens' }
]
test> 

test> db.restaurants.find().sort( { _id: -1 } )
[
  { _id: 5, name: "Jane's Deli", borough: 'Brooklyn' },
  { _id: 4, name: "Stan's Pizzaria", borough: 'Manhattan' },
  { _id: 3, name: 'Empire State Pub', borough: 'Brooklyn' },
  { _id: 2, name: 'Rock A Feller Bar and Grill', borough: 'Queens' },
  { _id: 1, name: 'Central Park Cafe', borough: 'Manhattan' }
]
test> db.restaurants.find().sort( { _id: 1 } )
[
  { _id: 1, name: 'Central Park Cafe', borough: 'Manhattan' },
  { _id: 2, name: 'Rock A Feller Bar and Grill', borough: 'Queens' },
  { _id: 3, name: 'Empire State Pub', borough: 'Brooklyn' },
  { _id: 4, name: "Stan's Pizzaria", borough: 'Manhattan' },
  { _id: 5, name: "Jane's Deli", borough: 'Brooklyn' }
]
test> 
heidsoft commented 1 year ago

关联查询

test> db.orders.insert([
...    { "_id" : 1, "item" : "almonds", "price" : 12, "quantity" : 2 },
...    { "_id" : 2, "item" : "pecans", "price" : 20, "quantity" : 1 },
...    { "_id" : 3  }
... ])
DeprecationWarning: Collection.insert() is deprecated. Use insertOne, insertMany, or bulkWrite.
{ acknowledged: true, insertedIds: { '0': 1, '1': 2, '2': 3 } }
test> 

test> db.orders.find();
[
  { _id: 1, item: 'almonds', price: 12, quantity: 2 },
  { _id: 2, item: 'pecans', price: 20, quantity: 1 },
  { _id: 3 }
]
test> db.inventory.insert([
...    { "_id" : 1, "sku" : "almonds", description: "product 1", "instock" : 120 },
...    { "_id" : 2, "sku" : "bread", description: "product 2", "instock" : 80 },
...    { "_id" : 3, "sku" : "cashews", description: "product 3", "instock" : 60 },
...    { "_id" : 4, "sku" : "pecans", description: "product 4", "instock" : 70 },
...    { "_id" : 5, "sku": null, description: "Incomplete" },
...    { "_id" : 6 }
... ])
{
  acknowledged: true,
  insertedIds: { '0': 1, '1': 2, '2': 3, '3': 4, '4': 5, '5': 6 }
}
test> db.orders.aggregate([
...    {
...      $lookup:
...        {
...          from: "inventory",
...          localField: "item",
...          foreignField: "sku",
...          as: "inventory_docs"
...        }
...   }
... ])
[
  {
    _id: 1,
    item: 'almonds',
    price: 12,
    quantity: 2,
    inventory_docs: [
      {
        _id: 1,
        sku: 'almonds',
        description: 'product 1',
        instock: 120
      }
    ]
  },
  {
    _id: 2,
    item: 'pecans',
    price: 20,
    quantity: 1,
    inventory_docs: [
      { _id: 4, sku: 'pecans', description: 'product 4', instock: 70 }
    ]
  },
  {
    _id: 3,
    inventory_docs: [ { _id: 5, sku: null, description: 'Incomplete' }, { _id: 6 } ]
  }
]
test> 
heidsoft commented 1 year ago

数组查询

test> db.scores.insertMany( [
... { _id: 1, results: [ 82, 85, 88 ] },
... { _id: 2, results: [ 75, 88, 89 ] }
... ] )
{ acknowledged: true, insertedIds: { '0': 1, '1': 2 } }
test> db.scores.find(
...    { results: { $elemMatch: { $gte: 80, $lt: 85 } } }
... )
[ { _id: 1, results: [ 82, 85, 88 ] } ]
test> 
heidsoft commented 1 year ago

集群性能监控指标

test> db.stats();
{
  db: 'test',
  collections: 4,
  views: 0,
  objects: 16,
  avgObjSize: 55.5,
  dataSize: 888,
  storageSize: 81920,
  indexes: 4,
  indexSize: 81920,
  totalSize: 163840,
  scaleFactor: 1,
  fsUsedSize: 90529837056,
  fsTotalSize: 105087164416,
  ok: 1
}

test> db.serverStatus()
{
  host: 'dev01',
  version: '6.0.5',
  process: 'mongod',
  pid: Long("7627"),
  uptime: 6303,
  uptimeMillis: Long("6302939"),
  uptimeEstimate: Long("6302"),
  localTime: ISODate("2023-05-30T10:58:49.944Z"),
  activeIndexBuilds: {
    total: 0,
    phases: {
      scanCollection: 0,
      drainSideWritesTable: 0,
      drainSideWritesTablePreCommit: 0,
      waitForCommitQuorum: 0,
      drainSideWritesTableOnCommit: 0,
      processConstraintsViolatonTableOnCommit: 0,
      commit: 0
    }
  },
  asserts: {
    regular: 0,
    warning: 0,
    msg: 0,
    user: 14,
    tripwire: 0,
    rollovers: 0
  },
  batchedDeletes: { batches: 0, docs: 0, stagedSizeBytes: 0, timeMillis: Long("0") },
  catalogStats: {
    collections: 6,
    capped: 0,
    clustered: 0,
    timeseries: 0,
    views: 0,
    internalCollections: 3,
    internalViews: 0
  },
  connections: {
    current: 5,
    available: 51195,
    totalCreated: 5,
    active: 2,
    threaded: 5,
    exhaustIsMaster: 0,
    exhaustHello: 1,
    awaitingTopologyChanges: 1
  },
  electionMetrics: {
    stepUpCmd: { called: Long("0"), successful: Long("0") },
    priorityTakeover: { called: Long("0"), successful: Long("0") },
    catchUpTakeover: { called: Long("0"), successful: Long("0") },
    electionTimeout: { called: Long("0"), successful: Long("0") },
    freezeTimeout: { called: Long("0"), successful: Long("0") },
    numStepDownsCausedByHigherTerm: Long("0"),
    numCatchUps: Long("0"),
    numCatchUpsSucceeded: Long("0"),
    numCatchUpsAlreadyCaughtUp: Long("0"),
    numCatchUpsSkipped: Long("0"),
    numCatchUpsTimedOut: Long("0"),
    numCatchUpsFailedWithError: Long("0"),
    numCatchUpsFailedWithNewTerm: Long("0"),
    numCatchUpsFailedWithReplSetAbortPrimaryCatchUpCmd: Long("0"),
    averageCatchUpOps: 0
  },
  extra_info: {
    note: 'fields vary by platform',
    user_time_us: Long("23479737"),
    system_time_us: Long("26093148"),
    maximum_resident_set_kb: Long("126464"),
    input_blocks: Long("131224"),
    output_blocks: Long("42800"),
    page_reclaims: Long("17753"),
    page_faults: Long("519"),
    voluntary_context_switches: Long("230436"),
    involuntary_context_switches: Long("18421")
  },
  flowControl: {
    enabled: true,
    targetRateLimit: 1000000000,
    timeAcquiringMicros: Long("310"),
    locksPerKiloOp: 0,
    sustainerRate: 0,
    isLagged: false,
    isLaggedCount: 0,
    isLaggedTimeMicros: Long("0")
  },
  freeMonitoring: { state: 'undecided' },
  globalLock: {
    totalTime: Long("6303040000"),
    currentQueue: { total: 0, readers: 0, writers: 0 },
    activeClients: { total: 0, readers: 0, writers: 0 }
  },
  indexBulkBuilder: {
    count: Long("0"),
    resumed: Long("0"),
    filesOpenedForExternalSort: Long("0"),
    filesClosedForExternalSort: Long("0"),
    spilledRanges: Long("0"),
    bytesSpilledUncompressed: Long("0"),
    bytesSpilled: Long("0")
  },
  indexStats: {
    count: Long("6"),
    features: {
      '2d': { count: Long("0"), accesses: Long("0") },
      '2dsphere': { count: Long("0"), accesses: Long("0") },
      '2dsphere_bucket': { count: Long("0"), accesses: Long("0") },
      collation: { count: Long("0"), accesses: Long("0") },
      compound: { count: Long("0"), accesses: Long("0") },
      hashed: { count: Long("0"), accesses: Long("0") },
      id: { count: Long("6"), accesses: Long("2") },
      normal: { count: Long("0"), accesses: Long("0") },
      partial: { count: Long("0"), accesses: Long("0") },
      single: { count: Long("0"), accesses: Long("0") },
      sparse: { count: Long("0"), accesses: Long("0") },
      text: { count: Long("0"), accesses: Long("0") },
      ttl: { count: Long("0"), accesses: Long("0") },
      unique: { count: Long("0"), accesses: Long("0") },
      wildcard: { count: Long("0"), accesses: Long("0") }
    }
  },
  locks: {
    ParallelBatchWriterMode: { acquireCount: { r: Long("150") } },
    FeatureCompatibilityVersion: { acquireCount: { r: Long("12716"), w: Long("137") } },
    ReplicationStateTransition: { acquireCount: { w: Long("6448") } },
    Global: {
      acquireCount: { r: Long("12716"), w: Long("132"), W: Long("5") }
    },
    Database: {
      acquireCount: { r: Long("9"), w: Long("131"), R: Long("1"), W: Long("1") }
    },
    Collection: { acquireCount: { r: Long("18"), w: Long("129"), W: Long("2") } },
    Mutex: { acquireCount: { r: Long("247") } }
  },
  logicalSessionRecordCache: {
    activeSessionsCount: 1,
    sessionsCollectionJobCount: 22,
    lastSessionsCollectionJobDurationMillis: 1,
    lastSessionsCollectionJobTimestamp: ISODate("2023-05-30T10:58:48.170Z"),
    lastSessionsCollectionJobEntriesRefreshed: 1,
    lastSessionsCollectionJobEntriesEnded: 0,
    lastSessionsCollectionJobCursorsClosed: 0,
    transactionReaperJobCount: 22,
    lastTransactionReaperJobDurationMillis: 0,
    lastTransactionReaperJobTimestamp: ISODate("2023-05-30T10:58:48.168Z"),
    lastTransactionReaperJobEntriesCleanedUp: 0,
    sessionCatalogSize: 0
  },
  network: {
    bytesIn: Long("125601"),
    bytesOut: Long("574014"),
    physicalBytesIn: Long("42789"),
    physicalBytesOut: Long("574014"),
    numSlowDNSOperations: Long("0"),
    numSlowSSLOperations: Long("0"),
    numRequests: Long("1279"),
    tcpFastOpen: {
      kernelSetting: Long("1"),
      serverSupported: true,
      clientSupported: true,
      accepted: Long("0")
    },
    compression: {
      snappy: {
        compressor: { bytesIn: Long("0"), bytesOut: Long("0") },
        decompressor: { bytesIn: Long("0"), bytesOut: Long("0") }
      },
      zstd: {
        compressor: { bytesIn: Long("0"), bytesOut: Long("0") },
        decompressor: { bytesIn: Long("0"), bytesOut: Long("0") }
      },
      zlib: {
        compressor: { bytesIn: Long("0"), bytesOut: Long("0") },
        decompressor: { bytesIn: Long("0"), bytesOut: Long("0") }
      }
    },
    serviceExecutors: {
      passthrough: {
        threadsRunning: 5,
        clientsInTotal: 5,
        clientsRunning: 5,
        clientsWaitingForData: 0
      },
      fixed: {
        threadsRunning: 1,
        clientsInTotal: 0,
        clientsRunning: 0,
        clientsWaitingForData: 0
      }
    }
  },
  opLatencies: {
    reads: { latency: Long("42350"), ops: Long("19") },
    writes: { latency: Long("177832"), ops: Long("4") },
    commands: { latency: Long("76452"), ops: Long("1254") },
    transactions: { latency: Long("0"), ops: Long("0") }
  },
  opcounters: {
    insert: Long("16"),
    query: Long("29"),
    update: Long("10"),
    delete: Long("0"),
    getmore: Long("0"),
    command: Long("1311")
  },
  opcountersRepl: {
    insert: Long("0"),
    query: Long("0"),
    update: Long("0"),
    delete: Long("0"),
    getmore: Long("0"),
    command: Long("0")
  },
  readConcernCounters: {
    nonTransactionOps: {
      none: Long("19"),
      noneInfo: {
        CWRC: { local: Long("0"), available: Long("0"), majority: Long("0") },
        implicitDefault: { local: Long("19"), available: Long("0") }
      },
      local: Long("0"),
      available: Long("0"),
      majority: Long("0"),
      snapshot: { withClusterTime: Long("0"), withoutClusterTime: Long("0") },
      linearizable: Long("0")
    },
    transactionOps: {
      none: Long("0"),
      noneInfo: {
        CWRC: { local: Long("0"), majority: Long("0") },
        implicitDefault: { local: Long("0") }
      },
      local: Long("0"),
      majority: Long("0"),
      snapshot: { withClusterTime: Long("0"), withoutClusterTime: Long("0") }
    }
  },
  scramCache: {
    'SCRAM-SHA-1': { count: Long("0"), hits: Long("0"), misses: Long("0") },
    'SCRAM-SHA-256': { count: Long("0"), hits: Long("0"), misses: Long("0") }
  },
  security: {
    authentication: {
      saslSupportedMechsReceived: Long("0"),
      mechanisms: {
        'MONGODB-X509': {
          speculativeAuthenticate: { received: Long("0"), successful: Long("0") },
          clusterAuthenticate: { received: Long("0"), successful: Long("0") },
          authenticate: { received: Long("0"), successful: Long("0") }
        },
        'SCRAM-SHA-1': {
          speculativeAuthenticate: { received: Long("0"), successful: Long("0") },
          clusterAuthenticate: { received: Long("0"), successful: Long("0") },
          authenticate: { received: Long("0"), successful: Long("0") }
        },
        'SCRAM-SHA-256': {
          speculativeAuthenticate: { received: Long("0"), successful: Long("0") },
          clusterAuthenticate: { received: Long("0"), successful: Long("0") },
          authenticate: { received: Long("0"), successful: Long("0") }
        }
      }
    }
  },
  storageEngine: {
    name: 'wiredTiger',
    supportsCommittedReads: true,
    oldestRequiredTimestampForCrashRecovery: Timestamp({ t: 0, i: 0 }),
    supportsPendingDrops: true,
    dropPendingIdents: Long("0"),
    supportsSnapshotReadConcern: true,
    readOnly: false,
    persistent: true,
    backupCursorOpen: false
  },
  tcmalloc: {
    generic: { current_allocated_bytes: 93351504, heap_size: 104718336 },
    tcmalloc: {
      pageheap_free_bytes: 9605120,
      pageheap_unmapped_bytes: 12288,
      max_total_thread_cache_bytes: 1041235968,
      current_total_thread_cache_bytes: 1314632,
      total_free_bytes: 1749424,
      central_cache_free_bytes: 257000,
      transfer_cache_free_bytes: 177792,
      thread_cache_free_bytes: 1314632,
      aggressive_memory_decommit: 0,
      pageheap_committed_bytes: 104706048,
      pageheap_scavenge_count: 5,
      pageheap_commit_count: 75,
      pageheap_total_commit_bytes: 108212224,
      pageheap_decommit_count: 5,
      pageheap_total_decommit_bytes: 3506176,
      pageheap_reserve_count: 59,
      pageheap_total_reserve_bytes: 104718336,
      spinlock_total_delay_ns: 4574915,
      release_rate: 1,
      formattedString: '------------------------------------------------\n' +
        'MALLOC:       93351952 (   89.0 MiB) Bytes in use by application\n' +
        'MALLOC: +      9605120 (    9.2 MiB) Bytes in page heap freelist\n' +
        'MALLOC: +       257000 (    0.2 MiB) Bytes in central cache freelist\n' +
        'MALLOC: +       177792 (    0.2 MiB) Bytes in transfer cache freelist\n' +
        'MALLOC: +      1314184 (    1.3 MiB) Bytes in thread cache freelists\n' +
        'MALLOC: +      2752512 (    2.6 MiB) Bytes in malloc metadata\n' +
        'MALLOC:   ------------\n' +
        'MALLOC: =    107458560 (  102.5 MiB) Actual memory used (physical + swap)\n' +
        'MALLOC: +        12288 (    0.0 MiB) Bytes released to OS (aka unmapped)\n' +
        'MALLOC:   ------------\n' +
        'MALLOC: =    107470848 (  102.5 MiB) Virtual address space used\n' +
        'MALLOC:\n' +
        'MALLOC:            996              Spans in use\n' +
        'MALLOC:             35              Thread heaps in use\n' +
        'MALLOC:           4096              Tcmalloc page size\n' +
        '------------------------------------------------\n' +
        'Call ReleaseFreeMemory() to release freelist memory to the OS (via madvise()).\n' +
        'Bytes released to the OS take up virtual address space but no physical memory.\n'
    }
  },
  tenantMigrations: {
    currentMigrationsDonating: Long("0"),
    currentMigrationsReceiving: Long("0"),
    totalSuccessfulMigrationsDonated: Long("0"),
    totalSuccessfulMigrationsReceived: Long("0"),
    totalFailedMigrationsDonated: Long("0"),
    totalFailedMigrationsReceived: Long("0")
  },
  trafficRecording: { running: false },
  transactions: {
    retriedCommandsCount: Long("0"),
    retriedStatementsCount: Long("0"),
    transactionsCollectionWriteCount: Long("0"),
    currentActive: Long("0"),
    currentInactive: Long("0"),
    currentOpen: Long("0"),
    totalAborted: Long("0"),
    totalCommitted: Long("0"),
    totalStarted: Long("0"),
    totalPrepared: Long("0"),
    totalPreparedThenCommitted: Long("0"),
    totalPreparedThenAborted: Long("0"),
    currentPrepared: Long("0")
  },
  transportSecurity: {
    '1.0': Long("0"),
    '1.1': Long("0"),
    '1.2': Long("0"),
    '1.3': Long("0"),
    unknown: Long("0")
  },
  twoPhaseCommitCoordinator: {
    totalCreated: Long("0"),
    totalStartedTwoPhaseCommit: Long("0"),
    totalAbortedTwoPhaseCommit: Long("0"),
    totalCommittedTwoPhaseCommit: Long("0"),
    currentInSteps: {
      writingParticipantList: Long("0"),
      waitingForVotes: Long("0"),
      writingDecision: Long("0"),
      waitingForDecisionAcks: Long("0"),
      deletingCoordinatorDoc: Long("0")
    }
  },
  wiredTiger: {
    uri: 'statistics:',
    'block-cache': {
      'cached blocks updated': 0,
      'cached bytes updated': 0,
      'evicted blocks': 0,
      'file size causing bypass': 0,
      lookups: 0,
      'number of blocks not evicted due to overhead': 0,
      'number of bypasses because no-write-allocate setting was on': 0,
      'number of bypasses due to overhead on put': 0,
      'number of bypasses on get': 0,
      'number of bypasses on put because file is too small': 0,
      'number of eviction passes': 0,
      'number of hits': 0,
      'number of misses': 0,
      'number of put bypasses on checkpoint I/O': 0,
      'removed blocks': 0,
      'total blocks': 0,
      'total blocks inserted on read path': 0,
      'total blocks inserted on write path': 0,
      'total bytes': 0,
      'total bytes inserted on read path': 0,
      'total bytes inserted on write path': 0
    },
    'block-manager': {
      'blocks pre-loaded': 7,
      'blocks read': 169,
      'blocks written': 636,
      'bytes read': 741376,
      'bytes read via memory map API': 0,
      'bytes read via system call API': 0,
      'bytes written': 5767168,
      'bytes written for checkpoint': 5767168,
      'bytes written via memory map API': 0,
      'bytes written via system call API': 0,
      'mapped blocks read': 0,
      'mapped bytes read': 0,
      'number of times the file was remapped because it changed size via fallocate or truncate': 0,
      'number of times the region was remapped via write': 0
    },
    cache: {
      'application threads page read from disk to cache count': 18,
      'application threads page read from disk to cache time (usecs)': 112,
      'application threads page write from cache to disk count': 331,
      'application threads page write from cache to disk time (usecs)': 26677,
      'bytes allocated for updates': 76927,
      'bytes belonging to page images in the cache': 40041,
      'bytes belonging to the history store table in the cache': 588,
      'bytes currently in the cache': 127729,
      'bytes dirty in the cache cumulative': 6690313,
      'bytes not belonging to page images in the cache': 87688,
      'bytes read into cache': 73704,
      'bytes written from cache': 3525650,
      'checkpoint blocked page eviction': 0,
      'checkpoint of history store file blocked non-history store page eviction': 0,
      'eviction calls to get a page': 7,
      'eviction calls to get a page found queue empty': 5,
      'eviction calls to get a page found queue empty after locking': 0,
      'eviction currently operating in aggressive mode': 0,
      'eviction empty score': 0,
      'eviction gave up due to detecting an out of order on disk value behind the last update on the chain': 0,
      'eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update': 0,
      'eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update after validating the update chain': 0,
      'eviction gave up due to detecting out of order timestamps on the update chain after the selected on disk update': 0,
      'eviction gave up due to needing to remove a record from the history store but checkpoint is running': 0,
      'eviction passes of a file': 0,
      'eviction server candidate queue empty when topping up': 0,
      'eviction server candidate queue not empty when topping up': 0,
      'eviction server evicting pages': 0,
      'eviction server slept, because we did not make progress with eviction': 197,
      'eviction server unable to reach eviction goal': 0,
      'eviction server waiting for a leaf page': 0,
      'eviction state': 64,
      'eviction walk most recent sleeps for checkpoint handle gathering': 0,
      'eviction walk target pages histogram - 0-9': 0,
      'eviction walk target pages histogram - 10-31': 0,
      'eviction walk target pages histogram - 128 and higher': 0,
      'eviction walk target pages histogram - 32-63': 0,
      'eviction walk target pages histogram - 64-128': 0,
      'eviction walk target pages reduced due to history store cache pressure': 0,
      'eviction walk target strategy both clean and dirty pages': 0,
      'eviction walk target strategy only clean pages': 0,
      'eviction walk target strategy only dirty pages': 0,
      'eviction walks abandoned': 0,
      'eviction walks gave up because they restarted their walk twice': 0,
      'eviction walks gave up because they saw too many pages and found no candidates': 0,
      'eviction walks gave up because they saw too many pages and found too few candidates': 0,
      'eviction walks reached end of tree': 0,
      'eviction walks restarted': 0,
      'eviction walks started from root of tree': 0,
      'eviction walks started from saved location in tree': 0,
      'eviction worker thread active': 4,
      'eviction worker thread created': 0,
      'eviction worker thread evicting pages': 1,
      'eviction worker thread removed': 0,
      'eviction worker thread stable number': 0,
      'files with active eviction walks': 0,
      'files with new eviction walks started': 0,
      'force re-tuning of eviction workers once in a while': 0,
      'forced eviction - history store pages failed to evict while session has history store cursor open': 0,
      'forced eviction - history store pages selected while session has history store cursor open': 0,
      'forced eviction - history store pages successfully evicted while session has history store cursor open': 0,
      'forced eviction - pages evicted that were clean count': 0,
      'forced eviction - pages evicted that were clean time (usecs)': 0,
      'forced eviction - pages evicted that were dirty count': 1,
      'forced eviction - pages evicted that were dirty time (usecs)': 2076,
      'forced eviction - pages selected because of a large number of updates to a single item': 0,
      'forced eviction - pages selected because of too many deleted items count': 2,
      'forced eviction - pages selected count': 1,
      'forced eviction - pages selected unable to be evicted count': 0,
      'forced eviction - pages selected unable to be evicted time': 0,
      'hazard pointer blocked page eviction': 0,
      'hazard pointer check calls': 2,
      'hazard pointer check entries walked': 0,
      'hazard pointer maximum array length': 0,
      'history store table insert calls': 0,
      'history store table insert calls that returned restart': 0,
      'history store table max on-disk size': 0,
      'history store table on-disk size': 4096,
      'history store table out-of-order resolved updates that lose their durable timestamp': 0,
      'history store table out-of-order updates that were fixed up by reinserting with the fixed timestamp': 0,
      'history store table reads': 0,
      'history store table reads missed': 0,
      'history store table reads requiring squashed modifies': 0,
      'history store table truncation by rollback to stable to remove an unstable update': 0,
      'history store table truncation by rollback to stable to remove an update': 0,
      'history store table truncation to remove an update': 0,
      'history store table truncation to remove range of updates due to key being removed from the data page during reconciliation': 0,
      'history store table truncation to remove range of updates due to out-of-order timestamp update on data page': 0,
      'history store table writes requiring squashed modifies': 0,
      'in-memory page passed criteria to be split': 0,
      'in-memory page splits': 0,
      'internal pages evicted': 0,
      'internal pages queued for eviction': 0,
      'internal pages seen by eviction walk': 0,
      'internal pages seen by eviction walk that are already queued': 0,
      'internal pages split during eviction': 0,
      'leaf pages split during eviction': 0,
      'maximum bytes configured': Long("3631218688"),
      'maximum page size at eviction': 0,
      'modified pages evicted': 2,
      'modified pages evicted by application threads': 0,
      'operations timed out waiting for space in cache': 0,
      'overflow pages read into cache': 0,
      'page split during eviction deepened the tree': 0,
      'page written requiring history store records': 0,
      'pages currently held in the cache': 38,
      'pages evicted by application threads': 0,
      'pages evicted in parallel with checkpoint': 0,
      'pages queued for eviction': 0,
      'pages queued for eviction post lru sorting': 0,
      'pages queued for urgent eviction': 2,
      'pages queued for urgent eviction during walk': 0,
      'pages queued for urgent eviction from history store due to high dirty content': 0,
      'pages read into cache': 21,
      'pages read into cache after truncate': 13,
      'pages read into cache after truncate in prepare state': 0,
      'pages requested from the cache': 2844,
      'pages seen by eviction walk': 0,
      'pages seen by eviction walk that are already queued': 0,
      'pages selected for eviction unable to be evicted': 0,
      'pages selected for eviction unable to be evicted because of active children on an internal page': 0,
      'pages selected for eviction unable to be evicted because of failure in reconciliation': 0,
      'pages selected for eviction unable to be evicted because of race between checkpoint and out of order timestamps handling': 0,
      'pages walked for eviction': 0,
      'pages written from cache': 333,
      'pages written requiring in-memory restoration': 2,
      'percentage overhead': 8,
      'the number of times full update inserted to history store': 0,
      'the number of times reverse modify inserted to history store': 0,
      'tracked bytes belonging to internal pages in the cache': 8659,
      'tracked bytes belonging to leaf pages in the cache': 119070,
      'tracked dirty bytes in the cache': 3365,
      'tracked dirty pages in the cache': 2,
      'unmodified pages evicted': 0
    },
    capacity: {
      'background fsync file handles considered': 0,
      'background fsync file handles synced': 0,
      'background fsync time (msecs)': 0,
      'bytes read': 135168,
      'bytes written for checkpoint': 3509677,
      'bytes written for eviction': 0,
      'bytes written for log': 838230144,
      'bytes written total': 841739821,
      'threshold to call fsync': 0,
      'time waiting due to total capacity (usecs)': 0,
      'time waiting during checkpoint (usecs)': 0,
      'time waiting during eviction (usecs)': 0,
      'time waiting during logging (usecs)': 0,
      'time waiting during read (usecs)': 0
    },
    'checkpoint-cleanup': {
      'pages added for eviction': 4,
      'pages removed': 0,
      'pages skipped during tree walk': 0,
      'pages visited': 153
    },
    connection: {
      'auto adjusting condition resets': 219,
      'auto adjusting condition wait calls': 38537,
      'auto adjusting condition wait raced to update timeout and skipped updating': 0,
      'detected system time went backwards': 0,
      'files currently open': 22,
      'hash bucket array size for data handles': 512,
      'hash bucket array size general': 512,
      'memory allocations': 243290,
      'memory frees': 241713,
      'memory re-allocations': 25920,
      'pthread mutex condition wait calls': 102110,
      'pthread mutex shared lock read-lock calls': 146097,
      'pthread mutex shared lock write-lock calls': 6838,
      'total fsync I/Os': 738,
      'total read I/Os': 1137,
      'total write I/Os': 1004
    },
    cursor: {
      'Total number of entries skipped by cursor next calls': 57,
      'Total number of entries skipped by cursor prev calls': 7,
      'Total number of entries skipped to position the history store cursor': 0,
      'Total number of times a search near has exited due to prefix config': 0,
      'cached cursor count': 14,
      'cursor bulk loaded cursor insert calls': 0,
      'cursor close calls that result in cache': 95776,
      'cursor create calls': 154,
      'cursor insert calls': 374,
      'cursor insert key and value bytes': 105952,
      'cursor modify calls': 0,
      'cursor modify key and value bytes affected': 0,
      'cursor modify value bytes modified': 0,
      'cursor next calls': 447,
      'cursor next calls that skip due to a globally visible history store tombstone': 0,
      'cursor next calls that skip greater than or equal to 100 entries': 0,
      'cursor next calls that skip less than 100 entries': 446,
      'cursor operation restarted': 0,
      'cursor prev calls': 61,
      'cursor prev calls that skip due to a globally visible history store tombstone': 0,
      'cursor prev calls that skip greater than or equal to 100 entries': 0,
      'cursor prev calls that skip less than 100 entries': 61,
      'cursor remove calls': 15,
      'cursor remove key bytes removed': 309,
      'cursor reserve calls': 0,
      'cursor reset calls': 98387,
      'cursor search calls': 842,
      'cursor search history store calls': 0,
      'cursor search near calls': 141,
      'cursor sweep buckets': 8652,
      'cursor sweep cursors closed': 0,
      'cursor sweep cursors examined': 21,
      'cursor sweeps': 1442,
      'cursor truncate calls': 0,
      'cursor update calls': 0,
      'cursor update key and value bytes': 0,
      'cursor update value size change': 0,
      'cursors reused from cache': 95762,
      'open cursor count': 5
    },
    'data-handle': {
      'connection data handle size': 440,
      'connection data handles currently active': 37,
      'connection sweep candidate became referenced': 0,
      'connection sweep dhandles closed': 0,
      'connection sweep dhandles removed from hash list': 42,
      'connection sweep time-of-death sets': 896,
      'connection sweeps': 630,
      'connection sweeps skipped due to checkpoint gathering handles': 0,
      'session dhandles swept': 22,
      'session sweep attempts': 79
    },
    lock: {
      'checkpoint lock acquisitions': 106,
      'checkpoint lock application thread wait time (usecs)': 45,
      'checkpoint lock internal thread wait time (usecs)': 0,
      'dhandle lock application thread time waiting (usecs)': 0,
      'dhandle lock internal thread time waiting (usecs)': 0,
      'dhandle read lock acquisitions': 25406,
      'dhandle write lock acquisitions': 125,
      'durable timestamp queue lock application thread time waiting (usecs)': 0,
      'durable timestamp queue lock internal thread time waiting (usecs)': 0,
      'durable timestamp queue read lock acquisitions': 0,
      'durable timestamp queue write lock acquisitions': 0,
      'metadata lock acquisitions': 105,
      'metadata lock application thread wait time (usecs)': 0,
      'metadata lock internal thread wait time (usecs)': 0,
      'read timestamp queue lock application thread time waiting (usecs)': 0,
      'read timestamp queue lock internal thread time waiting (usecs)': 0,
      'read timestamp queue read lock acquisitions': 0,
      'read timestamp queue write lock acquisitions': 0,
      'schema lock acquisitions': 137,
      'schema lock application thread wait time (usecs)': 0,
      'schema lock internal thread wait time (usecs)': 0,
      'table lock application thread time waiting for the table lock (usecs)': 0,
      'table lock internal thread time waiting for the table lock (usecs)': 0,
      'table read lock acquisitions': 0,
      'table write lock acquisitions': 19,
      'txn global lock application thread time waiting (usecs)': 0,
      'txn global lock internal thread time waiting (usecs)': 0,
      'txn global read lock acquisitions': 225,
      'txn global write lock acquisitions': 248
    },
    log: {
      'busy returns attempting to switch slots': 0,
      'force log remove time sleeping (usecs)': 0,
      'log bytes of payload data': 81410,
      'log bytes written': 119552,
      'log files manually zero-filled': 0,
      'log flush operations': 62805,
      'log force write operations': 69740,
      'log force write operations skipped': 69603,
      'log records compressed': 129,
      'log records not compressed': 22,
      'log records too small to compress': 456,
      'log release advances write LSN': 114,
      'log scan operations': 4,
      'log scan records requiring two reads': 0,
      'log server thread advances write LSN': 137,
      'log server thread write LSN walk skipped': 7182,
      'log sync operations': 252,
      'log sync time duration (usecs)': 1303854,
      'log sync_dir operations': 1,
      'log sync_dir time duration (usecs)': 5,
      'log write operations': 607,
      'logging bytes consolidated': 119040,
      'maximum log file size': 104857600,
      'number of pre-allocated log files to create': 2,
      'pre-allocated log files not ready and missed': 1,
      'pre-allocated log files prepared': 2,
      'pre-allocated log files used': 0,
      'records processed by log scan': 16,
      'slot close lost race': 0,
      'slot close unbuffered waits': 0,
      'slot closures': 251,
      'slot join atomic update races': 0,
      'slot join calls atomic updates raced': 0,
      'slot join calls did not yield': 607,
      'slot join calls found active slot closed': 0,
      'slot join calls slept': 0,
      'slot join calls yielded': 0,
      'slot join found active slot closed': 0,
      'slot joins yield time (usecs)': 0,
      'slot transitions unable to find free slot': 0,
      'slot unbuffered writes': 0,
      'total in-memory size of compressed records': 104600,
      'total log buffer size': 33554432,
      'total size of compressed records': 51975,
      'written slots coalesced': 0,
      'yields waiting for previous log file close': 0
    },
    perf: {
      'file system read latency histogram (bucket 1) - 10-49ms': 4,
      'file system read latency histogram (bucket 2) - 50-99ms': 0,
      'file system read latency histogram (bucket 3) - 100-249ms': 0,
      'file system read latency histogram (bucket 4) - 250-499ms': 0,
      'file system read latency histogram (bucket 5) - 500-999ms': 0,
      'file system read latency histogram (bucket 6) - 1000ms+': 0,
      'file system write latency histogram (bucket 1) - 10-49ms': 0,
      'file system write latency histogram (bucket 2) - 50-99ms': 0,
      'file system write latency histogram (bucket 3) - 100-249ms': 0,
      'file system write latency histogram (bucket 4) - 250-499ms': 0,
      'file system write latency histogram (bucket 5) - 500-999ms': 0,
      'file system write latency histogram (bucket 6) - 1000ms+': 0,
      'operation read latency histogram (bucket 1) - 100-249us': 0,
      'operation read latency histogram (bucket 2) - 250-499us': 0,
      'operation read latency histogram (bucket 3) - 500-999us': 1,
      'operation read latency histogram (bucket 4) - 1000-9999us': 0,
      'operation read latency histogram (bucket 5) - 10000us+': 0,
      'operation write latency histogram (bucket 1) - 100-249us': 0,
      'operation write latency histogram (bucket 2) - 250-499us': 0,
      'operation write latency histogram (bucket 3) - 500-999us': 0,
      'operation write latency histogram (bucket 4) - 1000-9999us': 1,
      'operation write latency histogram (bucket 5) - 10000us+': 0
    },
    reconciliation: {
      'approximate byte size of timestamps in pages written': 0,
      'approximate byte size of transaction IDs in pages written': 2080,
      'fast-path pages deleted': 0,
      'leaf-page overflow keys': 0,
      'maximum seconds spent in a reconciliation call': 0,
      'page reconciliation calls': 309,
      'page reconciliation calls for eviction': 2,
      'page reconciliation calls that resulted in values with prepared transaction metadata': 0,
      'page reconciliation calls that resulted in values with timestamps': 0,
      'page reconciliation calls that resulted in values with transaction ids': 105,
      'pages deleted': 10,
      'pages written including an aggregated newest start durable timestamp ': 0,
      'pages written including an aggregated newest stop durable timestamp ': 0,
      'pages written including an aggregated newest stop timestamp ': 0,
      'pages written including an aggregated newest stop transaction ID': 0,
      'pages written including an aggregated newest transaction ID ': 0,
      'pages written including an aggregated oldest start timestamp ': 0,
      'pages written including an aggregated prepare': 0,
      'pages written including at least one prepare state': 0,
      'pages written including at least one start durable timestamp': 0,
      'pages written including at least one start timestamp': 0,
      'pages written including at least one start transaction ID': 105,
      'pages written including at least one stop durable timestamp': 0,
      'pages written including at least one stop timestamp': 0,
      'pages written including at least one stop transaction ID': 0,
      'records written including a prepare state': 0,
      'records written including a start durable timestamp': 0,
      'records written including a start timestamp': 0,
      'records written including a start transaction ID': 260,
      'records written including a stop durable timestamp': 0,
      'records written including a stop timestamp': 0,
      'records written including a stop transaction ID': 0,
      'split bytes currently awaiting free': 0,
      'split objects currently awaiting free': 0
    },
    session: {
      'attempts to remove a local object and the object is in use': 0,
      'flush_tier operation calls': 0,
      'flush_tier tables skipped due to no checkpoint': 0,
      'flush_tier tables switched': 0,
      'local objects removed': 0,
      'open session count': 14,
      'session query timestamp calls': 0,
      'table alter failed calls': 0,
      'table alter successful calls': 0,
      'table alter triggering checkpoint calls': 0,
      'table alter unchanged and skipped': 0,
      'table compact failed calls': 0,
      'table compact failed calls due to cache pressure': 0,
      'table compact running': 0,
      'table compact skipped as process would not reduce file size': 0,
      'table compact successful calls': 0,
      'table compact timeout': 0,
      'table create failed calls': 0,
      'table create successful calls': 9,
      'table drop failed calls': 0,
      'table drop successful calls': 0,
      'table rename failed calls': 0,
      'table rename successful calls': 0,
      'table salvage failed calls': 0,
      'table salvage successful calls': 0,
      'table truncate failed calls': 0,
      'table truncate successful calls': 0,
      'table verify failed calls': 0,
      'table verify successful calls': 0,
      'tiered operations dequeued and processed': 0,
      'tiered operations scheduled': 0,
      'tiered storage local retention time (secs)': 0
    },
    'thread-state': {
      'active filesystem fsync calls': 0,
      'active filesystem read calls': 0,
      'active filesystem write calls': 0
    },
    'thread-yield': {
      'application thread time evicting (usecs)': 0,
      'application thread time waiting for cache (usecs)': 0,
      'connection close blocked waiting for transaction state stabilization': 0,
      'connection close yielded for lsm manager shutdown': 0,
      'data handle lock yielded': 0,
      'get reference for page index and slot time sleeping (usecs)': 0,
      'page access yielded due to prepare state change': 0,
      'page acquire busy blocked': 0,
      'page acquire eviction blocked': 0,
      'page acquire locked blocked': 0,
      'page acquire read blocked': 0,
      'page acquire time sleeping (usecs)': 0,
      'page delete rollback time sleeping for state change (usecs)': 0,
      'page reconciliation yielded due to child modification': 0
    },
    transaction: {
      'Number of prepared updates': 0,
      'Number of prepared updates committed': 0,
      'Number of prepared updates repeated on the same key': 0,
      'Number of prepared updates rolled back': 0,
      'prepared transactions': 0,
      'prepared transactions committed': 0,
      'prepared transactions currently active': 0,
      'prepared transactions rolled back': 0,
      'query timestamp calls': 6302,
      'race to read prepared update retry': 0,
      'rollback to stable calls': 0,
      'rollback to stable history store records with stop timestamps older than newer records': 0,
      'rollback to stable inconsistent checkpoint': 0,
      'rollback to stable keys removed': 0,
      'rollback to stable keys restored': 0,
      'rollback to stable pages visited': 0,
      'rollback to stable restored tombstones from history store': 0,
      'rollback to stable restored updates from history store': 0,
      'rollback to stable skipping delete rle': 0,
      'rollback to stable skipping stable rle': 0,
      'rollback to stable sweeping history store keys': 0,
      'rollback to stable tree walk skipping pages': 0,
      'rollback to stable updates aborted': 0,
      'rollback to stable updates removed from history store': 0,
      'sessions scanned in each walk of concurrent sessions': 102586,
      'set timestamp calls': 0,
      'set timestamp durable calls': 0,
      'set timestamp durable updates': 0,
      'set timestamp oldest calls': 0,
      'set timestamp oldest updates': 0,
      'set timestamp stable calls': 0,
      'set timestamp stable updates': 0,
      'transaction begins': 260,
      'transaction checkpoint currently running': 0,
      'transaction checkpoint currently running for history store file': 0,
      'transaction checkpoint generation': 106,
      'transaction checkpoint history store file duration (usecs)': 9,
      'transaction checkpoint max time (msecs)': 76,
      'transaction checkpoint min time (msecs)': 1,
      'transaction checkpoint most recent duration for gathering all handles (usecs)': 237,
      'transaction checkpoint most recent duration for gathering applied handles (usecs)': 0,
      'transaction checkpoint most recent duration for gathering skipped handles (usecs)': 185,
      'transaction checkpoint most recent handles applied': 0,
      'transaction checkpoint most recent handles skipped': 18,
      'transaction checkpoint most recent handles walked': 37,
      'transaction checkpoint most recent time (msecs)': 13,
      'transaction checkpoint prepare currently running': 0,
      'transaction checkpoint prepare max time (msecs)': 0,
      'transaction checkpoint prepare min time (msecs)': 0,
      'transaction checkpoint prepare most recent time (msecs)': 0,
      'transaction checkpoint prepare total time (msecs)': 0,
      'transaction checkpoint scrub dirty target': 0,
      'transaction checkpoint scrub time (msecs)': 0,
      'transaction checkpoint stop timing stress active': 0,
      'transaction checkpoint total time (msecs)': 1154,
      'transaction checkpoints': 105,
      'transaction checkpoints due to obsolete pages': 0,
      'transaction checkpoints skipped because database was clean': 0,
      'transaction failures due to history store': 0,
      'transaction fsync calls for checkpoint after allocating the transaction ID': 105,
      'transaction fsync duration for checkpoint after allocating the transaction ID (usecs)': 33,
      'transaction range of IDs currently pinned': 0,
      'transaction range of IDs currently pinned by a checkpoint': 0,
      'transaction range of timestamps currently pinned': 0,
      'transaction range of timestamps pinned by a checkpoint': 0,
      'transaction range of timestamps pinned by the oldest active read timestamp': 0,
      'transaction range of timestamps pinned by the oldest timestamp': 0,
      'transaction read timestamp of the oldest active reader': 0,
      'transaction rollback to stable currently running': 0,
      'transaction walk of concurrent sessions': 6845,
      'transactions committed': 39,
      'transactions rolled back': 221,
      'update conflicts': 0
    },
    concurrentTransactions: {
      write: { out: 0, available: 128, totalTickets: 128 },
      read: { out: 0, available: 128, totalTickets: 128 }
    },
    'snapshot-window-settings': {
      'total number of SnapshotTooOld errors': Long("0"),
      'minimum target snapshot window size in seconds': 300,
      'current available snapshot window size in seconds': 0,
      'latest majority snapshot timestamp available': 'Jan  1 08:00:00:0',
      'oldest majority snapshot timestamp available': 'Jan  1 08:00:00:0',
      'pinned timestamp requests': 0,
      'min pinned timestamp': Timestamp({ t: -1, i: -1 })
    },
    oplog: { 'visibility timestamp': Timestamp({ t: 0, i: 0 }) }
  },
  mem: { bits: 64, resident: 123, virtual: 2640, supported: true },
  metrics: {
    apiVersions: { 'mongosh 1.8.2': [ 'default' ] },
    aggStageCounters: {
      '$_addReshardingResumeId': Long("0"),
      '$_internalAllCollectionStats': Long("0"),
      '$_internalApplyOplogUpdate': Long("0"),
      '$_internalBoundedSort': Long("0"),
      '$_internalChangeStreamAddPostImage': Long("0"),
      '$_internalChangeStreamAddPreImage': Long("0"),
      '$_internalChangeStreamCheckInvalidate': Long("0"),
      '$_internalChangeStreamCheckResumability': Long("0"),
      '$_internalChangeStreamCheckTopologyChange': Long("0"),
      '$_internalChangeStreamOplogMatch': Long("0"),
      '$_internalChangeStreamTransform': Long("0"),
      '$_internalChangeStreamUnwindTransaction': Long("0"),
      '$_internalComputeGeoNearDistance': Long("0"),
      '$_internalConvertBucketIndexStats': Long("0"),
      '$_internalDensify': Long("0"),
      '$_internalFindAndModifyImageLookup': Long("0"),
      '$_internalInhibitOptimization': Long("0"),
      '$_internalReshardingIterateTransaction': Long("0"),
      '$_internalReshardingOwnershipMatch': Long("0"),
      '$_internalSetWindowFields': Long("0"),
      '$_internalSplitPipeline': Long("0"),
      '$_internalUnpackBucket': Long("0"),
      '$_unpackBucket': Long("0"),
      '$addFields': Long("0"),
      '$bucket': Long("0"),
      '$bucketAuto': Long("0"),
      '$changeStream': Long("0"),
      '$collStats': Long("1"),
      '$count': Long("0"),
      '$currentOp': Long("0"),
      '$densify': Long("0"),
      '$documents': Long("0"),
      '$facet': Long("0"),
      '$fill': Long("0"),
      '$geoNear': Long("0"),
      '$graphLookup': Long("0"),
      '$group': Long("0"),
      '$indexStats': Long("0"),
      '$limit': Long("0"),
      '$listCachedAndActiveUsers': Long("0"),
      '$listCatalog': Long("0"),
      '$listLocalSessions': Long("0"),
      '$listSessions': Long("0"),
      '$lookup': Long("11"),
      '$match': Long("6"),
      '$merge': Long("0"),
      '$mergeCursors': Long("0"),
      '$operationMetrics': Long("0"),
      '$out': Long("0"),
      '$planCacheStats': Long("0"),
      '$project': Long("0"),
      '$queue': Long("0"),
      '$redact': Long("0"),
      '$replaceRoot': Long("0"),
      '$replaceWith': Long("0"),
      '$sample': Long("0"),
      '$set': Long("10"),
      '$setVariableFromSubPipeline': Long("0"),
      '$setWindowFields': Long("0"),
      '$shardedDataDistribution': Long("0"),
      '$skip': Long("0"),
      '$sort': Long("0"),
      '$sortByCount': Long("0"),
      '$unionWith': Long("0"),
      '$unset': Long("0"),
      '$unwind': Long("0")
    },
    commands: {
      '<UNKNOWN>': Long("1"),
      _addShard: { failed: Long("0"), total: Long("0") },
      _configsvrAbortReshardCollection: { failed: Long("0"), total: Long("0") },
      _configsvrAddShard: { failed: Long("0"), total: Long("0") },
      _configsvrAddShardToZone: { failed: Long("0"), total: Long("0") },
      _configsvrBalancerCollectionStatus: { failed: Long("0"), total: Long("0") },
      _configsvrBalancerStart: { failed: Long("0"), total: Long("0") },
      _configsvrBalancerStatus: { failed: Long("0"), total: Long("0") },
      _configsvrBalancerStop: { failed: Long("0"), total: Long("0") },
      _configsvrCleanupReshardCollection: { failed: Long("0"), total: Long("0") },
      _configsvrClearJumboFlag: { failed: Long("0"), total: Long("0") },
      _configsvrCollMod: { failed: Long("0"), total: Long("0") },
      _configsvrCommitChunkMigration: { failed: Long("0"), total: Long("0") },
      _configsvrCommitChunkSplit: { failed: Long("0"), total: Long("0") },
      _configsvrCommitChunksMerge: { failed: Long("0"), total: Long("0") },
      _configsvrCommitMovePrimary: { failed: Long("0"), total: Long("0") },
      _configsvrCommitReshardCollection: { failed: Long("0"), total: Long("0") },
      _configsvrConfigureCollectionBalancing: { failed: Long("0"), total: Long("0") },
      _configsvrCreateDatabase: { failed: Long("0"), total: Long("0") },
      _configsvrEnsureChunkVersionIsGreaterThan: { failed: Long("0"), total: Long("0") },
      _configsvrMoveChunk: { failed: Long("0"), total: Long("0") },
      _configsvrMoveRange: { failed: Long("0"), total: Long("0") },
      _configsvrRefineCollectionShardKey: { failed: Long("0"), total: Long("0") },
      _configsvrRemoveChunks: { failed: Long("0"), total: Long("0") },
      _configsvrRemoveShard: { failed: Long("0"), total: Long("0") },
      _configsvrRemoveShardFromZone: { failed: Long("0"), total: Long("0") },
      _configsvrRemoveTags: { failed: Long("0"), total: Long("0") },
      _configsvrRenameCollectionMetadata: { failed: Long("0"), total: Long("0") },
      _configsvrRepairShardedCollectionChunksHistory: { failed: Long("0"), total: Long("0") },
      _configsvrReshardCollection: { failed: Long("0"), total: Long("0") },
      _configsvrRunRestore: { failed: Long("0"), total: Long("0") },
      _configsvrSetAllowMigrations: { failed: Long("0"), total: Long("0") },
      _configsvrSetClusterParameter: { failed: Long("0"), total: Long("0") },
      _configsvrSetUserWriteBlockMode: { failed: Long("0"), total: Long("0") },
      _configsvrUpdateZoneKeyRange: { failed: Long("0"), total: Long("0") },
      _flushDatabaseCacheUpdates: { failed: Long("0"), total: Long("0") },
      _flushDatabaseCacheUpdatesWithWriteConcern: { failed: Long("0"), total: Long("0") },
      _flushReshardingStateChange: { failed: Long("0"), total: Long("0") },
      _flushRoutingTableCacheUpdates: { failed: Long("0"), total: Long("0") },
      _flushRoutingTableCacheUpdatesWithWriteConcern: { failed: Long("0"), total: Long("0") },
      _getNextSessionMods: { failed: Long("0"), total: Long("0") },
      _getUserCacheGeneration: { failed: Long("0"), total: Long("0") },
      _isSelf: { failed: Long("0"), total: Long("0") },
      _killOperations: { failed: Long("0"), total: Long("0") },
      _mergeAuthzCollections: { failed: Long("0"), total: Long("0") },
      _migrateClone: { failed: Long("0"), total: Long("0") },
      _recvChunkAbort: { failed: Long("0"), total: Long("0") },
      _recvChunkCommit: { failed: Long("0"), total: Long("0") },
      _recvChunkReleaseCritSec: { failed: Long("0"), total: Long("0") },
      _recvChunkStart: { failed: Long("0"), total: Long("0") },
      _recvChunkStatus: { failed: Long("0"), total: Long("0") },
      _shardsvrAbortReshardCollection: { failed: Long("0"), total: Long("0") },
      _shardsvrCleanupReshardCollection: { failed: Long("0"), total: Long("0") },
      _shardsvrCloneCatalogData: { failed: Long("0"), total: Long("0") },
      _shardsvrCollMod: { failed: Long("0"), total: Long("0") },
      _shardsvrCollModParticipant: { failed: Long("0"), total: Long("0") },
      _shardsvrCommitReshardCollection: { failed: Long("0"), total: Long("0") },
      _shardsvrCompactStructuredEncryptionData: { failed: Long("0"), total: Long("0") },
      _shardsvrCreateCollection: { failed: Long("0"), total: Long("0") },
      _shardsvrCreateCollectionParticipant: { failed: Long("0"), total: Long("0") },
      _shardsvrDropCollection: { failed: Long("0"), total: Long("0") },
      _shardsvrDropCollectionIfUUIDNotMatching: { failed: Long("0"), total: Long("0") },
      _shardsvrDropCollectionParticipant: { failed: Long("0"), total: Long("0") },
      _shardsvrDropDatabase: { failed: Long("0"), total: Long("0") },
      _shardsvrDropDatabaseParticipant: { failed: Long("0"), total: Long("0") },
      _shardsvrDropIndexes: { failed: Long("0"), total: Long("0") },
      _shardsvrGetStatsForBalancing: { failed: Long("0"), total: Long("0") },
      _shardsvrJoinMigrations: { failed: Long("0"), total: Long("0") },
      _shardsvrMovePrimary: { failed: Long("0"), total: Long("0") },
      _shardsvrMoveRange: { failed: Long("0"), total: Long("0") },
      _shardsvrParticipantBlock: { failed: Long("0"), total: Long("0") },
      _shardsvrRefineCollectionShardKey: { failed: Long("0"), total: Long("0") },
      _shardsvrRenameCollection: { failed: Long("0"), total: Long("0") },
      _shardsvrRenameCollectionParticipant: { failed: Long("0"), total: Long("0") },
      _shardsvrRenameCollectionParticipantUnblock: { failed: Long("0"), total: Long("0") },
      _shardsvrReshardCollection: { failed: Long("0"), total: Long("0") },
      _shardsvrReshardingOperationTime: { failed: Long("0"), total: Long("0") },
      _shardsvrSetAllowMigrations: { failed: Long("0"), total: Long("0") },
      _shardsvrSetClusterParameter: { failed: Long("0"), total: Long("0") },
      _shardsvrSetUserWriteBlockMode: { failed: Long("0"), total: Long("0") },
      _transferMods: { failed: Long("0"), total: Long("0") },
      abortShardSplit: { failed: Long("0"), total: Long("0") },
      abortTransaction: { failed: Long("0"), total: Long("0") },
      aggregate: { failed: Long("1"), total: Long("12") },
      appendOplogNote: { failed: Long("0"), total: Long("0") },
      applyOps: { failed: Long("0"), total: Long("0") },
      authenticate: { failed: Long("0"), total: Long("0") },
      autoSplitVector: { failed: Long("0"), total: Long("0") },
      availableQueryOptions: { failed: Long("0"), total: Long("0") },
      buildInfo: { failed: Long("0"), total: Long("1") },
      checkShardingIndex: { failed: Long("0"), total: Long("0") },
      cleanupOrphaned: { failed: Long("0"), total: Long("0") },
      cloneCollectionAsCapped: { failed: Long("0"), total: Long("0") },
      clusterAbortTransaction: { failed: Long("0"), total: Long("0") },
      clusterAggregate: { failed: Long("0"), total: Long("0") },
      clusterCommitTransaction: { failed: Long("0"), total: Long("0") },
      clusterDelete: { failed: Long("0"), total: Long("0") },
      clusterFind: { failed: Long("0"), total: Long("0") },
      clusterGetMore: { failed: Long("0"), total: Long("0") },
      clusterInsert: { failed: Long("0"), total: Long("0") },
      clusterUpdate: {
        arrayFilters: Long("0"),
        failed: Long("0"),
        pipeline: Long("0"),
        total: Long("0")
      },
      collMod: {
        failed: Long("0"),
        total: Long("0"),
        validator: { failed: Long("0"), jsonSchema: Long("0"), total: Long("0") }
      },
      collStats: { failed: Long("0"), total: Long("0") },
      commitShardSplit: { failed: Long("0"), total: Long("0") },
      commitTransaction: { failed: Long("0"), total: Long("0") },
      compact: { failed: Long("0"), total: Long("0") },
      compactStructuredEncryptionData: { failed: Long("0"), total: Long("0") },
      connPoolStats: { failed: Long("0"), total: Long("0") },
      connPoolSync: { failed: Long("0"), total: Long("0") },
      connectionStatus: { failed: Long("0"), total: Long("0") },
      convertToCapped: { failed: Long("0"), total: Long("0") },
      coordinateCommitTransaction: { failed: Long("0"), total: Long("0") },
      count: { failed: Long("0"), total: Long("0") },
      create: {
        failed: Long("0"),
        total: Long("0"),
        validator: { failed: Long("0"), jsonSchema: Long("0"), total: Long("0") }
      },
      createIndexes: { failed: Long("0"), total: Long("0") },
      createRole: { failed: Long("0"), total: Long("0") },
      createUser: { failed: Long("0"), total: Long("0") },
      currentOp: { failed: Long("0"), total: Long("0") },
      dataSize: { failed: Long("0"), total: Long("0") },
      dbCheck: { failed: Long("0"), total: Long("0") },
      dbHash: { failed: Long("0"), total: Long("0") },
      dbStats: { failed: Long("0"), total: Long("1") },
      delete: { failed: Long("0"), total: Long("0") },
      distinct: { failed: Long("0"), total: Long("0") },
      donorAbortMigration: { failed: Long("0"), total: Long("0") },
      donorForgetMigration: { failed: Long("0"), total: Long("0") },
      donorStartMigration: { failed: Long("0"), total: Long("0") },
      driverOIDTest: { failed: Long("0"), total: Long("0") },
      drop: { failed: Long("0"), total: Long("0") },
      dropAllRolesFromDatabase: { failed: Long("0"), total: Long("0") },
      dropAllUsersFromDatabase: { failed: Long("0"), total: Long("0") },
      dropConnections: { failed: Long("0"), total: Long("0") },
      dropDatabase: { failed: Long("0"), total: Long("0") },
      dropIndexes: { failed: Long("0"), total: Long("0") },
      dropRole: { failed: Long("0"), total: Long("0") },
      dropUser: { failed: Long("0"), total: Long("0") },
      endSessions: { failed: Long("0"), total: Long("0") },
      explain: { failed: Long("0"), total: Long("0") },
      features: { failed: Long("0"), total: Long("0") },
      filemd5: { failed: Long("0"), total: Long("0") },
      find: { failed: Long("0"), total: Long("29") },
      findAndModify: {
        arrayFilters: Long("0"),
        failed: Long("0"),
        pipeline: Long("0"),
        total: Long("0")
      },
      flushRouterConfig: { failed: Long("0"), total: Long("0") },
      forgetShardSplit: { failed: Long("0"), total: Long("0") },
      fsync: { failed: Long("0"), total: Long("0") },
      fsyncUnlock: { failed: Long("0"), total: Long("0") },
      getClusterParameter: { failed: Long("0"), total: Long("0") },
      getCmdLineOpts: { failed: Long("0"), total: Long("1") },
      getDatabaseVersion: { failed: Long("0"), total: Long("0") },
      getDefaultRWConcern: { failed: Long("0"), total: Long("0") },
      getDiagnosticData: { failed: Long("0"), total: Long("0") },
      getFreeMonitoringStatus: { failed: Long("0"), total: Long("1") },
      getLastError: { failed: Long("0"), total: Long("0") },
      getLog: { failed: Long("0"), total: Long("1") },
      getMore: { failed: Long("0"), total: Long("0") },
      getParameter: { failed: Long("0"), total: Long("1") },
      getShardMap: { failed: Long("0"), total: Long("0") },
      getShardVersion: { failed: Long("0"), total: Long("0") },
      getnonce: { failed: Long("0"), total: Long("0") },
      grantPrivilegesToRole: { failed: Long("0"), total: Long("0") },
      grantRolesToRole: { failed: Long("0"), total: Long("0") },
      grantRolesToUser: { failed: Long("0"), total: Long("0") },
      hello: { failed: Long("0"), total: Long("620") },
      hostInfo: { failed: Long("0"), total: Long("0") },
      insert: { failed: Long("0"), total: Long("4") },
      internalRenameIfOptionsAndIndexesMatch: { failed: Long("0"), total: Long("0") },
      invalidateUserCache: { failed: Long("0"), total: Long("0") },
      isMaster: { failed: Long("0"), total: Long("622") },
      killAllSessions: { failed: Long("0"), total: Long("0") },
      killAllSessionsByPattern: { failed: Long("0"), total: Long("0") },
      killCursors: { failed: Long("0"), total: Long("0") },
      killOp: { failed: Long("0"), total: Long("0") },
      killSessions: { failed: Long("0"), total: Long("0") },
      listCollections: { failed: Long("0"), total: Long("1") },
      listCommands: { failed: Long("0"), total: Long("0") },
      listDatabases: { failed: Long("0"), total: Long("1") },
      listIndexes: { failed: Long("0"), total: Long("44") },
      lockInfo: { failed: Long("0"), total: Long("0") },
      logRotate: { failed: Long("0"), total: Long("0") },
      logout: { failed: Long("0"), total: Long("0") },
      mapReduce: { failed: Long("0"), total: Long("0") },
      mergeChunks: { failed: Long("0"), total: Long("0") },
      ping: { failed: Long("0"), total: Long("1") },
      planCacheClear: { failed: Long("0"), total: Long("0") },
      planCacheClearFilters: { failed: Long("0"), total: Long("0") },
      planCacheListFilters: { failed: Long("0"), total: Long("0") },
      planCacheSetFilter: { failed: Long("0"), total: Long("0") },
      prepareTransaction: { failed: Long("0"), total: Long("0") },
      profile: { failed: Long("0"), total: Long("0") },
      reIndex: { failed: Long("0"), total: Long("0") },
      recipientForgetMigration: { failed: Long("0"), total: Long("0") },
      recipientSyncData: { failed: Long("0"), total: Long("0") },
      recipientVoteImportedFiles: { failed: Long("0"), total: Long("0") },
      refreshSessions: { failed: Long("0"), total: Long("0") },
      renameCollection: { failed: Long("0"), total: Long("0") },
      replSetAbortPrimaryCatchUp: { failed: Long("0"), total: Long("0") },
      replSetFreeze: { failed: Long("0"), total: Long("0") },
      replSetGetConfig: { failed: Long("0"), total: Long("0") },
      replSetGetRBID: { failed: Long("0"), total: Long("0") },
      replSetGetStatus: { failed: Long("0"), total: Long("0") },
      replSetHeartbeat: { failed: Long("0"), total: Long("0") },
      replSetInitiate: { failed: Long("0"), total: Long("0") },
      replSetMaintenance: { failed: Long("0"), total: Long("0") },
      replSetReconfig: { failed: Long("0"), total: Long("0") },
      replSetRequestVotes: { failed: Long("0"), total: Long("0") },
      replSetResizeOplog: { failed: Long("0"), total: Long("0") },
      replSetStepDown: { failed: Long("0"), total: Long("0") },
      replSetStepDownWithForce: { failed: Long("0"), total: Long("0") },
      replSetStepUp: { failed: Long("0"), total: Long("0") },
      replSetSyncFrom: { failed: Long("0"), total: Long("0") },
      replSetUpdatePosition: { failed: Long("0"), total: Long("0") },
      revokePrivilegesFromRole: { failed: Long("0"), total: Long("0") },
      revokeRolesFromRole: { failed: Long("0"), total: Long("0") },
      revokeRolesFromUser: { failed: Long("0"), total: Long("0") },
      rolesInfo: { failed: Long("0"), total: Long("0") },
      rotateCertificates: { failed: Long("0"), total: Long("0") },
      saslContinue: { failed: Long("0"), total: Long("0") },
      saslStart: { failed: Long("0"), total: Long("0") },
      serverStatus: { failed: Long("0"), total: Long("4") },
      setClusterParameter: { failed: Long("0"), total: Long("0") },
      setDefaultRWConcern: { failed: Long("0"), total: Long("0") },
      setFeatureCompatibilityVersion: { failed: Long("0"), total: Long("0") },
      setFreeMonitoring: { failed: Long("0"), total: Long("0") },
      setIndexCommitQuorum: { failed: Long("0"), total: Long("0") },
      setParameter: { failed: Long("0"), total: Long("0") },
      setProfilingFilterGlobally: { failed: Long("0"), total: Long("0") },
      setShardVersion: { failed: Long("0"), total: Long("0") },
      setUserWriteBlockMode: { failed: Long("0"), total: Long("0") },
      shardingState: { failed: Long("0"), total: Long("0") },
      shutdown: { failed: Long("0"), total: Long("0") },
      splitChunk: { failed: Long("0"), total: Long("0") },
      splitVector: { failed: Long("0"), total: Long("0") },
      startRecordingTraffic: { failed: Long("0"), total: Long("0") },
      startSession: { failed: Long("0"), total: Long("0") },
      stopRecordingTraffic: { failed: Long("0"), total: Long("0") },
      top: { failed: Long("0"), total: Long("0") },
      update: {
        arrayFilters: Long("0"),
        failed: Long("0"),
        pipeline: Long("10"),
        total: Long("8")
      },
      updateRole: { failed: Long("0"), total: Long("0") },
      updateUser: { failed: Long("0"), total: Long("0") },
      usersInfo: { failed: Long("0"), total: Long("0") },
      validate: { failed: Long("0"), total: Long("0") },
      validateDBMetadata: { failed: Long("0"), total: Long("0") },
      voteCommitIndexBuild: { failed: Long("0"), total: Long("0") },
      waitForFailPoint: { failed: Long("0"), total: Long("0") },
      whatsmyuri: { failed: Long("0"), total: Long("0") }
    },
    cursor: {
      moreThanOneBatch: Long("0"),
      timedOut: Long("0"),
      totalOpened: Long("12"),
      lifespan: {
        greaterThanOrEqual10Minutes: Long("0"),
        lessThan10Minutes: Long("0"),
        lessThan15Seconds: Long("0"),
        lessThan1Minute: Long("0"),
        lessThan1Second: Long("12"),
        lessThan30Seconds: Long("0"),
        lessThan5Seconds: Long("0")
      },
      open: { noTimeout: Long("0"), pinned: Long("0"), total: Long("0") }
    },
    document: {
      deleted: Long("0"),
      inserted: Long("16"),
      returned: Long("52"),
      updated: Long("6")
    },
    dotsAndDollarsFields: { inserts: Long("0"), updates: Long("0") },
    getLastError: {
      wtime: { num: 0, totalMillis: 0 },
      wtimeouts: Long("0"),
      default: { unsatisfiable: Long("0"), wtimeouts: Long("0") }
    },
    mongos: { cursor: { moreThanOneBatch: Long("0"), totalOpened: Long("0") } },
    operation: {
      scanAndOrder: Long("1"),
      temporarilyUnavailableErrors: Long("0"),
      temporarilyUnavailableErrorsConvertedToWriteConflict: Long("0"),
      temporarilyUnavailableErrorsEscaped: Long("0"),
      transactionTooLargeForCacheErrors: Long("0"),
      transactionTooLargeForCacheErrorsConvertedToWriteConflict: Long("0"),
      writeConflicts: Long("0")
    },
    operatorCounters: {
      expressions: {
        '$_internalFindAllValuesAtPath': Long("0"),
        '$_internalFleEq': Long("0"),
        '$_internalJsEmit': Long("0"),
        '$abs': Long("0"),
        '$acos': Long("0"),
        '$acosh': Long("0"),
        '$add': Long("0"),
        '$allElementsTrue': Long("0"),
        '$and': Long("0"),
        '$anyElementTrue': Long("0"),
        '$arrayElemAt': Long("0"),
        '$arrayToObject': Long("0"),
        '$asin': Long("0"),
        '$asinh': Long("0"),
        '$atan': Long("0"),
        '$atan2': Long("0"),
        '$atanh': Long("0"),
        '$avg': Long("0"),
        '$binarySize': Long("0"),
        '$bsonSize': Long("0"),
        '$ceil': Long("0"),
        '$cmp': Long("0"),
        '$concat': Long("0"),
        '$concatArrays': Long("0"),
        '$cond': Long("0"),
        '$const': Long("0"),
        '$convert': Long("0"),
        '$cos': Long("0"),
        '$cosh': Long("0"),
        '$dateAdd': Long("0"),
        '$dateDiff': Long("0"),
        '$dateFromParts': Long("0"),
        '$dateFromString': Long("0"),
        '$dateSubtract': Long("0"),
        '$dateToParts': Long("0"),
        '$dateToString': Long("0"),
        '$dateTrunc': Long("0"),
        '$dayOfMonth': Long("0"),
        '$dayOfWeek': Long("0"),
        '$dayOfYear': Long("0"),
        '$degreesToRadians': Long("0"),
        '$divide': Long("0"),
        '$eq': Long("0"),
        '$exp': Long("0"),
        '$filter': Long("0"),
        '$first': Long("0"),
        '$firstN': Long("0"),
        '$floor': Long("0"),
        '$function': Long("0"),
        '$getField': Long("0"),
        '$gt': Long("0"),
        '$gte': Long("0"),
        '$hour': Long("0"),
        '$ifNull': Long("0"),
        '$in': Long("0"),
        '$indexOfArray': Long("0"),
        '$indexOfBytes': Long("0"),
        '$indexOfCP': Long("0"),
        '$isArray': Long("0"),
        '$isNumber': Long("0"),
        '$isoDayOfWeek': Long("0"),
        '$isoWeek': Long("0"),
        '$isoWeekYear': Long("0"),
        '$last': Long("0"),
        '$lastN': Long("0"),
        '$let': Long("0"),
        '$literal': Long("0"),
        '$ln': Long("0"),
        '$log': Long("0"),
        '$log10': Long("0"),
        '$lt': Long("0"),
        '$lte': Long("0"),
        '$ltrim': Long("0"),
        '$map': Long("0"),
        '$max': Long("0"),
        '$maxN': Long("0"),
        '$mergeObjects': Long("0"),
        '$meta': Long("0"),
        '$millisecond': Long("0"),
        '$min': Long("0"),
        '$minN': Long("0"),
        '$minute': Long("0"),
        '$mod': Long("0"),
        '$month': Long("0"),
        '$multiply': Long("0"),
        '$ne': Long("0"),
        '$not': Long("0"),
        '$objectToArray': Long("0"),
        '$or': Long("0"),
        '$pow': Long("0"),
        '$radiansToDegrees': Long("0"),
        '$rand': Long("0"),
        '$range': Long("0"),
        '$reduce': Long("0"),
        '$regexFind': Long("0"),
        '$regexFindAll': Long("0"),
        '$regexMatch': Long("0"),
        '$replaceAll': Long("0"),
        '$replaceOne': Long("0"),
        '$reverseArray': Long("0"),
        '$round': Long("0"),
        '$rtrim': Long("0"),
        '$second': Long("0"),
        '$setDifference': Long("0"),
        '$setEquals': Long("0"),
        '$setField': Long("0"),
        '$setIntersection': Long("0"),
        '$setIsSubset': Long("0"),
        '$setUnion': Long("0"),
        '$sin': Long("0"),
        '$sinh': Long("0"),
        '$size': Long("0"),
        '$slice': Long("0"),
        '$sortArray': Long("0"),
        '$split': Long("0"),
        '$sqrt': Long("0"),
        '$stdDevPop': Long("0"),
        '$stdDevSamp': Long("0"),
        '$strLenBytes': Long("0"),
        '$strLenCP': Long("0"),
        '$strcasecmp': Long("0"),
        '$substr': Long("0"),
        '$substrBytes': Long("0"),
        '$substrCP': Long("0"),
        '$subtract': Long("0"),
        '$sum': Long("0"),
        '$switch': Long("0"),
        '$tan': Long("0"),
        '$tanh': Long("0"),
        '$toBool': Long("0"),
        '$toDate': Long("0"),
        '$toDecimal': Long("0"),
        '$toDouble': Long("0"),
        '$toHashedIndexKey': Long("0"),
        '$toInt': Long("0"),
        '$toLong': Long("0"),
        '$toLower': Long("0"),
        '$toObjectId': Long("0"),
        '$toString': Long("0"),
        '$toUpper': Long("0"),
        '$trim': Long("0"),
        '$trunc': Long("0"),
        '$tsIncrement': Long("0"),
        '$tsSecond': Long("0"),
        '$type': Long("0"),
        '$unsetField': Long("0"),
        '$week': Long("0"),
        '$year': Long("0"),
        '$zip': Long("0")
      },
      groupAccumulators: {
        '$_internalJsReduce': Long("0"),
        '$accumulator': Long("0"),
        '$addToSet': Long("0"),
        '$avg': Long("0"),
        '$bottom': Long("0"),
        '$bottomN': Long("0"),
        '$count': Long("0"),
        '$first': Long("0"),
        '$firstN': Long("0"),
        '$last': Long("0"),
        '$lastN': Long("0"),
        '$max': Long("0"),
        '$maxN': Long("0"),
        '$mergeObjects': Long("0"),
        '$min': Long("0"),
        '$minN': Long("0"),
        '$push': Long("0"),
        '$stdDevPop': Long("0"),
        '$stdDevSamp': Long("0"),
        '$sum': Long("0"),
        '$top': Long("0"),
        '$topN': Long("0")
      },
      match: {
        '$all': Long("0"),
        '$alwaysFalse': Long("0"),
        '$alwaysTrue': Long("0"),
        '$and': Long("0"),
        '$bitsAllClear': Long("0"),
        '$bitsAllSet': Long("0"),
        '$bitsAnyClear': Long("0"),
        '$bitsAnySet': Long("0"),
        '$comment': Long("0"),
        '$elemMatch': Long("1"),
        '$eq': Long("6"),
        '$exists': Long("0"),
        '$expr': Long("0"),
        '$geoIntersects': Long("0"),
        '$geoWithin': Long("0"),
        '$gt': Long("0"),
        '$gte': Long("1"),
        '$in': Long("0"),
        '$jsonSchema': Long("0"),
        '$lt': Long("23"),
        '$lte': Long("0"),
        '$mod': Long("0"),
        '$ne': Long("0"),
        '$near': Long("0"),
        '$nearSphere': Long("0"),
        '$nin': Long("0"),
        '$nor': Long("0"),
        '$not': Long("0"),
        '$or': Long("0"),
        '$regex': Long("0"),
        '$sampleRate': Long("0"),
        '$size': Long("0"),
        '$text': Long("0"),
        '$type': Long("0"),
        '$where': Long("0")
      },
      windowAccumulators: {
        '$addToSet': Long("0"),
        '$avg': Long("0"),
        '$bottom': Long("0"),
        '$bottomN': Long("0"),
        '$count': Long("0"),
        '$covariancePop': Long("0"),
        '$covarianceSamp': Long("0"),
        '$denseRank': Long("0"),
        '$derivative': Long("0"),
        '$documentNumber': Long("0"),
        '$expMovingAvg': Long("0"),
        '$first': Long("0"),
        '$firstN': Long("0"),
        '$integral': Long("0"),
        '$last': Long("0"),
        '$lastN': Long("0"),
        '$linearFill': Long("0"),
        '$locf': Long("0"),
        '$max': Long("0"),
        '$maxN': Long("0"),
        '$min': Long("0"),
        '$minN': Long("0"),
        '$push': Long("0"),
        '$rank': Long("0"),
        '$shift': Long("0"),
        '$stdDevPop': Long("0"),
        '$stdDevSamp': Long("0"),
        '$sum': Long("0"),
        '$top': Long("0"),
        '$topN': Long("0")
      }
    },
    query: {
      allowDiskUseFalse: Long("0"),
      deleteManyCount: Long("0"),
      planCacheTotalSizeEstimateBytes: Long("0"),
      updateDeleteManyDocumentsMaxCount: Long("0"),
      updateDeleteManyDocumentsTotalCount: Long("0"),
      updateDeleteManyDurationMaxMs: Long("0"),
      updateDeleteManyDurationTotalMs: Long("0"),
      updateManyCount: Long("0"),
      updateOneOpStyleBroadcastWithExactIDCount: Long("0"),
      multiPlanner: {
        classicCount: Long("0"),
        classicMicros: Long("0"),
        classicWorks: Long("0"),
        sbeCount: Long("0"),
        sbeMicros: Long("0"),
        sbeNumReads: Long("0"),
        histograms: {
          classicMicros: [
            { lowerBound: Long("0"), count: Long("0") },
            { lowerBound: Long("1024"), count: Long("0") },
            { lowerBound: Long("4096"), count: Long("0") },
            { lowerBound: Long("16384"), count: Long("0") },
            { lowerBound: Long("65536"), count: Long("0") },
            { lowerBound: Long("262144"), count: Long("0") },
            { lowerBound: Long("1048576"), count: Long("0") },
            { lowerBound: Long("4194304"), count: Long("0") },
            { lowerBound: Long("16777216"), count: Long("0") },
            { lowerBound: Long("67108864"), count: Long("0") },
            { lowerBound: Long("268435456"), count: Long("0") },
            { lowerBound: Long("1073741824"), count: Long("0") }
          ],
          classicNumPlans: [
            { lowerBound: Long("0"), count: Long("0") },
            { lowerBound: Long("2"), count: Long("0") },
            { lowerBound: Long("4"), count: Long("0") },
            { lowerBound: Long("8"), count: Long("0") },
            { lowerBound: Long("16"), count: Long("0") },
            { lowerBound: Long("32"), count: Long("0") }
          ],
          classicWorks: [
            { lowerBound: Long("0"), count: Long("0") },
            { lowerBound: Long("128"), count: Long("0") },
            { lowerBound: Long("256"), count: Long("0") },
            { lowerBound: Long("512"), count: Long("0") },
            { lowerBound: Long("1024"), count: Long("0") },
            { lowerBound: Long("2048"), count: Long("0") },
            { lowerBound: Long("4096"), count: Long("0") },
            { lowerBound: Long("8192"), count: Long("0") },
            { lowerBound: Long("16384"), count: Long("0") },
            { lowerBound: Long("32768"), count: Long("0") }
          ],
          sbeMicros: [
            { lowerBound: Long("0"), count: Long("0") },
            { lowerBound: Long("1024"), count: Long("0") },
            { lowerBound: Long("4096"), count: Long("0") },
            { lowerBound: Long("16384"), count: Long("0") },
            { lowerBound: Long("65536"), count: Long("0") },
            { lowerBound: Long("262144"), count: Long("0") },
            { lowerBound: Long("1048576"), count: Long("0") },
            { lowerBound: Long("4194304"), count: Long("0") },
            { lowerBound: Long("16777216"), count: Long("0") },
            { lowerBound: Long("67108864"), count: Long("0") },
            { lowerBound: Long("268435456"), count: Long("0") },
            { lowerBound: Long("1073741824"), count: Long("0") }
          ],
          sbeNumPlans: [
            { lowerBound: Long("0"), count: Long("0") },
            { lowerBound: Long("2"), count: Long("0") },
            { lowerBound: Long("4"), count: Long("0") },
            { lowerBound: Long("8"), count: Long("0") },
            { lowerBound: Long("16"), count: Long("0") },
            { lowerBound: Long("32"), count: Long("0") }
          ],
          sbeNumReads: [
            { lowerBound: Long("0"), count: Long("0") },
            { lowerBound: Long("128"), count: Long("0") },
            { lowerBound: Long("256"), count: Long("0") },
            { lowerBound: Long("512"), count: Long("0") },
            { lowerBound: Long("1024"), count: Long("0") },
            { lowerBound: Long("2048"), count: Long("0") },
            { lowerBound: Long("4096"), count: Long("0") },
            { lowerBound: Long("8192"), count: Long("0") },
            { lowerBound: Long("16384"), count: Long("0") },
            { lowerBound: Long("32768"), count: Long("0") }
          ]
        }
      },
      queryFramework: {
        aggregate: {
          classicHybrid: Long("0"),
          classicOnly: Long("0"),
          cqf: Long("0"),
          sbeHybrid: Long("6"),
          sbeOnly: Long("5")
        },
        find: { classic: Long("29"), cqf: Long("0"), sbe: Long("0") }
      }
    },
    queryExecutor: {
      scanned: Long("16"),
      scannedObjects: Long("125"),
      collectionScans: { nonTailable: Long("14"), total: Long("25") }
    },
    repl: {
      executor: {
        pool: { inProgressCount: 0 },
        queues: { networkInProgress: 0, sleepers: 0 },
        unsignaledEvents: 0,
        shuttingDown: false,
        networkInterface: 'DEPRECATED: getDiagnosticString is deprecated in NetworkInterfaceTL'
      },
      apply: {
        attemptsToBecomeSecondary: Long("0"),
        batchSize: Long("0"),
        batches: { num: 0, totalMillis: 0 },
        ops: Long("0")
      },
      buffer: {
        count: Long("0"),
        maxSizeBytes: Long("0"),
        sizeBytes: Long("0")
      },
      initialSync: {
        completed: Long("0"),
        failedAttempts: Long("0"),
        failures: Long("0")
      },
      network: {
        bytes: Long("0"),
        getmores: { num: 0, totalMillis: 0, numEmptyBatches: Long("0") },
        notPrimaryLegacyUnacknowledgedWrites: Long("0"),
        notPrimaryUnacknowledgedWrites: Long("0"),
        oplogGetMoresProcessed: { num: 0, totalMillis: 0 },
        ops: Long("0"),
        readersCreated: Long("0"),
        replSetUpdatePosition: { num: Long("0") }
      },
      reconfig: { numAutoReconfigsForRemovalOfNewlyAddedFields: Long("0") },
      stateTransition: {
        lastStateTransition: '',
        userOperationsKilled: Long("0"),
        userOperationsRunning: Long("0")
      },
      syncSource: {
        numSelections: Long("0"),
        numSyncSourceChangesDueToSignificantlyCloserNode: Long("0"),
        numTimesChoseDifferent: Long("0"),
        numTimesChoseSame: Long("0"),
        numTimesCouldNotFind: Long("0")
      }
    },
    ttl: { deletedDocuments: Long("3"), passes: Long("105") }
  },
  ok: 1
}
t

https://cloud.tencent.com/document/product/248/45104 https://developer.aliyun.com/article/405274 https://www.cnblogs.com/duanxz/p/4366678.html https://support.huaweicloud.com/productdesc-apm2/apm_01_0043.html