Coder Social home page Coder Social logo

mongo-munin's Introduction

Multigraph Munin Plugin for MongoDB

Graphs

  • ops: operations/second
  • mem: mapped, virtual and resident memory usage
  • conn: current connections
  • lock: read/write lock info
  • document_activity: number of documents (inserted, updated...)
  • page_faults: number of page faults/second
  • collections: number of documents per collection and size of each collection

Requirements

  • MongoDB 2.4+
  • python/pymongo

Installation (ubuntu)

Install pymongo:

sudo apt-get install pip
sudo apt-get install build-essential python-dev
sudo pip install pymongo

Install plugins

git clone https://github.com/cureatr/mongo-munin.git /tmp/mongo-munin
sudo cp /tmp/mongo-munin/mongo_munin /usr/share/munin/plugins
sudo ln -sf /usr/share/munin/plugins/mongo_munin /etc/munin/plugins/mongo_munin
sudo chmod +x /usr/share/munin/plugins/mongo_munin
sudo service munin-node restart

Check if plugins are running:

munin-node-configure | grep "mongo_munin"

Test plugin output:

munin-run mongo_munin

Configuration

munin-node environment can be customized by adding a configuration file:

/etc/munin/plugin-conf.d/munin-mongo

You can specify a custom mongodb connection URI, or a custom path if you want to run mongo_munin in a python virtualenv:

[mongo_munin]
env.MONGO_DB_URI mongodb://user:password@host:port/dbname
env.PATH /path/to/virtualenv/bin:/usr/sbin:/usr/bin:/sbin:/bin

mongo-munin's People

Contributors

erh avatar rectalogic avatar orvillejojo avatar comerford avatar alaz avatar lukaf avatar schmichael avatar samuelclay avatar

Watchers

James Cloos avatar Dzmitry Dziamidaŭ avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.