I try to get \"workingSet\" metrics with pymongo. In MongoDB is just db.runCommand( { serverStatus: 1, workingSet: 1 } ). I\'ve tried in python
db.runCommand( { serverStatus: 1, workingSet: 1 } )
>>> import pymongo >>> c = pymongo.MongoClient() >>> c['admin'].command('serverStatus', workingSet=True)['workingSet'] {u'note': u'thisIsAnEstimate', u'computationTimeMicros': 4555, u'pagesInMemory': 7, u'overSeconds': 388}