Rest interface
MongoDB provides a simple rest interface that can be used to configure monitoring and alerting scripts and other administrative tasks.
You can turn on the rest interface support by adding the--rest parameter at the command line or by using the config file plus rest=true.
Refer to document http://docs.mongodb.org/ecosystem/tools/http-interfaces/for details
HTTP interface
MongoDB provides a simple HTTP interface, as the current MongoDB instance runs on a port that is 28018, which can be accessed via http://127.0.0.1:38018
Refer to document http://docs.mongodb.org/ecosystem/tools/http-interfaces/for details
MongoDB Database command
MongoDB provides some database commands that can fine-grained reflect the operation of MongoDB, the output of these commands can be used to write custom monitoring scripts.
Db.currentop () returns a document record of the operation currently being performed by the DB instance
Db.currentop () can display more detailed information, including idle connections and system operations, without parameters or with a true parameter.
Db.currentop (True)
Only
This article is from the Linux SA John blog, so be sure to keep this source http://john88wang.blog.51cto.com/2165294/1561278
MongoDB Monitor three MongoDB self-monitoring method