Configure Site24x7 plugin to monitor the performance metrics of your MongoDB databases.
MongoDB is a free and open-source cross-platform document-oriented database program. Use Site24x7 plugins and gain in-depth visibility into the right MongoDB metrics to optimize your data infrastructures.
This document details how to configure the MongoDB plugin and the monitoring metrics for providing in-depth visibility into the performance, availability, and usage stats of MongoDB servers.
MongoDB performance monitoring metrics:
The Various out-of-the-box metrics we support are:
"connections_available" metric counts and records the total number of unused connections available for new clients in your MongoDB setup.
"connections_current" metric counts and records the total number of connections active to the database in your MongoDB setup.
The total amount of heap space in bytes used by the databases in your MongoDB setup is recorded using the metric "heap_usage".
Total open cursors
The metric "cursors_total_open" identifies and records the total number of cursors currently opened by your MongoDB setup for clients.
How it works?
Log-in to your Site24x7 account. Sign up here if you don't have one.
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
Note: Site24x7 Linux agent will automatically try to install "pymongo" using the "pip" command. If the installations fails, users can manually install the module following the steps mentioned under the section "How to install pymongo?".
How to install pymongo?
Execute the following command in your server to to install pymongo
pip install pymongo
Use "pip" to install pymongo
Note: pip is a package management system that is used to install and manage software packages written in Python.
For CentOS, Fedora, RHEL:
yum install python-devel
yum install python-pip (or)
For Debian, Ubuntu:
apt-get -y install python-pip
MongoDB plugin installation:
Create a directory with the name "mongod", under Site24x7 Linux Agent plugin directory - /opt/site24x7/monagent/plugins/