Mongotop can see how long a MongoDB instance spends on reading or writing data, and it provides aggregate-level statistics, while Mongostat provides database-level statistics. Mongotop data is displayed by default once per second
The relevant parameter options are as follows:
--HELP Display Help information
--VERBOSE,-V verbose mode, multiple v more detailed, such as-VVV
--version displaying version information
--host Specifying host Name
--port Specifying ports
--username,-u Specify user name
--password,-p Specifying user passwords
--authenticationdatabase the library name of the specified user credential
--authenticationmechanism specifying the authentication mechanism
--locks is displayed on a per-library basis, not on a collection
<sleeptime> Refresh Interval Time
Field description
The results shown in Mongotop are expressed in MS MS
Mongotop only shows active namespace or DB, using--locks only shows that the DB does not show namespace
NS represents namespace, which consists of a library name and a collection name
DB Library name, using--locks display
This article is from the Linux SA John blog, so be sure to keep this source http://john88wang.blog.51cto.com/2165294/1561187
MongoDB monitoring Two Mongotop