MongoDB Monitor three MongoDB self-monitoring method

Source: Internet
Author: User
  1. 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

  2. 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

  3. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.