Skip to content

Instantly share code, notes, and snippets.

@paul
Created May 20, 2010 04:26
Show Gist options
  • Select an option

  • Save paul/407198 to your computer and use it in GitHub Desktop.

Select an option

Save paul/407198 to your computer and use it in GitHub Desktop.
> use mongo_stats
switched to db mongo_stats
> show collections
log
raw
system.indexes
system.users
> use admin
> db.runCommand({top: true}).totals["mongo_stats.raw"]["queries"]
{ "time" : 18873, "count" : 4 }
> db.runCommand({top: true}).totals["mongo_stats.log"]["queries"]
{ "time" : 0, "count" : 0 }
> db.runCommand({top: true}).totals["mongo_stats.system.users"]["queries"]
{ "time" : 1638, "count" : 20 }
> db.runCommand({top: true}).totals["mongo_stats.$cmd"]["queries"]
{ "time" : 49880, "count" : 43 }
> db.runCommand({top: true}).totals["mongo_stats"]["queries"]
{ "time" : 9790, "count" : 21 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment