-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:
The new serverstatus system allows for hidden sections to be exposed, dynamically like so:
> db.runCommand({serverStatus:true, workingSet:1}).workingSet { "note" : "thisIsAnEstimate", "pagesInMemory" : 29, "computationTimeMicros" : 3738 }
Grep code for ServerStatusSection for all named sections.
You will want to cover the new metrics as well:
db.runCommand({serverStatus:true}).metrics { "document" : { "deleted" : NumberLong(0), "inserted" : NumberLong(1), "returned" : NumberLong(286), "scanned" : NumberLong(625), "updated" : NumberLong(0) }, "operation" : { "fastmod" : NumberLong(0), //in-place mod "idhack" : NumberLong(0), // _id in query, and uses _id index "scanAndOrder" : NumberLong(0) // in memory sorts }, "record" : { "moves" : NumberLong(0) // when documents move }, "ttl" : { "deletedDocuments" : NumberLong(0), "passes" : NumberLong(0) } }
Good to see if anything else has changed.