September 19, 2013 by Meghan Gill | Comments
comments powered by Disqus
MongoDB Management Service (MMS) provides free monitoring with metrics specifically tuned for your MongoDB deployment. In this short tutorial, we’ll walk you through how you can install the Monitoring Agent on your system.
Step 1: Install Python Libraries & Setup Tools
The monitoring agent is written in Python, so you will need to make sure that you have the latest version of Python installed. You can do that by running the following command:
sudo yum install gcc python-devel python-setuptools python-libs
Step 2: Install PyMongo
PyMongo is the Python driver for MongoDB and needs to be installed:
sudo easy_install pymongo
If you already have PyMongo install, update to the latest version:
sudo easy_install -U pymongo
Step 3: Create an MMS group and download the agent
In mms.mongodb.com, a setup wizard will welcome you to MMS. From there, you can download the monitoring agent for your operating system.
Step 4: Unzip agent tarball
Unzip the agent tarball by running the following command:
tar zxpvf mms-monitoring-agent-<groupname>.tar.gz
Step 5: Launch agent
Now that the agent is unzipped, you will need to run it:
nohup python agent.py >> /path-to-mms-agent/mms-agent/agent.log 2>&1 &
Step 6: Add hosts in the MMS GUI
Finally, add your hosts in the MMS user interface. Within a few minutes you should start seeing data and within hours your graphs will start to populate as data flows in.
For detailed instructions and installation troubleshooting, visit the docs.
Ready to get started? Create a free MMS account now.