mongostat command checks the status of all running mongod instances
and return counters of database operations.
The following code shows how to use
mongotop command track and report the read and write activity of MongoDB instance.
By default mongotop returns information every second.
The following code shows how to use this command.
To change mongotop command to return information less frequently, use the following command.
The above example will return values every 30 seconds.