MongoDB monitoring.

Configure MongoDB plugin to monitor the performance metrics of your MongoDB databases.

Gain in-depth visibility into the right metrics to optimize your data infrastructures. Learn how the plugin works.

MongoDB performance monitoring metrics:

Available connections

Total number of unused connections available for new clients.

Current connections

Total number of clients currently connected to the database server.

Total open cursors

Total number of cursors currently opened by MongoDB for clients.

Heap usage

The total size in bytes of heap space used by the database process.

How it works?

  • Log-in to your Site24x7 account. Sign up here if you don't have one.
  • Download and install the latest version of Site24x7 Linux Agent
  • Install the MongoDB plugin
  • The agent will execute the MongoDB plugin and push the data to the Site24x7 server


  • Site24x7 MongoDB plugin uses "pymongo" module to get the performance metrics of MongoDB database

How to install pymongo?

MongoDB plugin installation:

  • Create a directory with the name "mongod", under Site24x7 Linux Agent plugin directory - /opt/site24x7/monagent/plugins/mongod
  • Download the file "" from our GitHub repository and place it under the "mongod" directory
  • Commands to perform the above step:
  • cd /opt/site24x7/monagent/plugins/
    mkdir mongod
    cd mongod
  • Once the plugin file is downloaded, the agent will mark it up in the next data collection and you can view it in Site24x7 client

MongoDB plugin configuration:

  • By default, the plugin will monitor MongoDB instance that is configured on "localhost"
  • In order to change the monitoring configuration, go to plugins directory and edit the "#Config Section:" in file
  • MongoDB plugin file location - /opt/site24x7agent/monagent/plugins/mongod/

    #Config Section:

Monitoring additional metrics:

  • To monitor additional metrics, edit the "" file and add the new metrics that need monitoring
  • Increment the plugin version value in the file "" to view the newly added metrics ( For e.g. Change the default plugin version from PLUGIN_VERSION = "1" to "PLUGIN_VERSION = "2")

Related plugins:

  • Redis plugin - Monitor performance metrics of your Redis databases
  • MySQL plugin - Analyze performance of your MySQL database servers
  • Memcached plugin - Analyze performance of your Memcached server
  • Nagios plugin - Execute thousands of Nagios plugins in Site24x7 without the need of running a Nagios server
  • Out-of-the-box plugins - Monitor your entire app stack with our extensive list of integrations
  • Create custom plugins - Create custom Linux and Windows plugins and monitor custom attributes

World's leading companies


Don't have a Site24x7 account? Sign up now!