Purpose : To show how to display the statistics for a particular database.

db_stats.js

mongo=new Mongo(“localhost”);
myDB=mongo.getDB(“admin”);
stats=myDB.stats();
printjson(stats);

ice_screenshot_20151210-141342

Advertisements