Example of Munin's graph for Mongo Documents

Monitoring MongoDB in Munin on Ubuntu (updated)

If you try now to install Munin monitoring for MongoDB database, you’ll find in the Mongo’s documentation, a link to an repository for munin plugins. The bad thing is this repository were updated for the last time on Feburay 2012. Of course, since 2012, MongoDB evolved and this plugins were not working at all on a recent version of MongoDB (2.6+).

Principally because MongoDB now removed the auto activation of the rest server (for security reasons).

Thanks to Adam Comerford on StackOverflow(link), you now have a recent and working version of these plugins, using python’s pymongo instead of Mongo’s Rest.

For my uses, I forked the fork to add another graph monitoring the number of documents in the database, and a basic setup for Ubuntu.

https://github.com/Cog-g/mongo-munin/tree/feature/add_documents_graph
https://github.com/Cog-g/mongo-munin/tree/hotfix/fix_mongo_docs_plugin_return_the_count_of_docs

Update (2014/09/25): The document plugin was not returning the correct number of document, but the number of events. It’s now fixed

Update (2014/09/20): Adam Comerford merged my branch into his: https://github.com/comerford/mongo-munin/commit/8980f32762991d5e4931b4d9abb1d3d95863dc12

Adam’s fork: https://github.com/comerford/mongo-munin

Installation for Munin (ubuntu)

Install pymongo:

Install plugins:

Published by

Constantin Guay

Currently Data Project Manager and Scrum Evangelist at NetMediaEurope, european leader in IT B2B news site (more than 12 million unique visitors per month). Passionate by user experience and data science. Scrum evangelist

Leave a Reply

Your email address will not be published. Required fields are marked *