Skip to main content

Monitor and locate long running operations on MongoDB and automatically trigger specific actions for alerting and performance analysis.

Project description

What is Mongoop ?

Monitor and locate long running operations on MongoDB and automatically trigger specific actions for alerting and performance analysis.

Is it ready ?

It’s still not 1.0 but enought mature to test on your infrastructure.

Documentation

Up to date documentation:

Learn how to write your own triggers:

Usage

Currently, mongoop is a simple cli tool:

mongoop

Using your own settings as well:

mongoop --config /path/to/settings.py

Settings

Settings are a python file, you can override them easily.

# default
mongodb_host = 'localhost'

mongodb_port = 27017

mongodb_credentials = None

mongodb_options = None

frequency = 10

# the default threshold timeout is set to 60s
# when no triggers directive is provided.
triggers = {}

# sample of  triggers
triggers = {
    'mongodb': {
        'threshold': 5,
        'database': 'mongoop',
        'collection': 'history',
    },
    'nsca': {
        'threshold': 5,
        'monitoring_server': 'nagios.foo.com',
        'service': 'mongoop',
    },
    'nsca': {
        'threshold': 60,
        'monitoring_server': 'nagios.foo.com',
        'service': 'mongoop',
        'status': 'critical',
    },
    'email': {
        'threshold': 60,
        'subject': 'Mongoop report',
        'from': 'mongoop@localhost',
        'to': 'root',
        'smtp_host': 'localhost',
    },
    'killer': {
        'threshold': 120
    }
}

Requirements

This code has been run on Python 2.7

# install by the setup
Jinja2==2.8
gevent==1.0.2
pymongo==3.0.2
pynsca==1.5

Installation

Pypi

Using pip:

$ pip install mongoop

Gentoo Linux

Using emerge (very soon):

$ sudo emerge -a mongoop

Triggers

Killer

Terminates an operation as specified by the operation ID.

MongoDB

Insert the slow OP in a different database and do what you want.

Currently, mongoop use the combo (database/collection).

An index is created on the opid field.

Email

Send an email with each opid.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mongoop-0.0.6.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file mongoop-0.0.6.tar.gz.

File metadata

  • Download URL: mongoop-0.0.6.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mongoop-0.0.6.tar.gz
Algorithm Hash digest
SHA256 74955be4bb8844c3044bdc9a62341da1a58c2f2f88ca6a1f82c4084dfdb935d7
MD5 7e75f0a15eb2c7d8ee4f366e50c39c7f
BLAKE2b-256 85ab3529344ae065497d3d665a3f0999de21165406977c590758436fbdc4be99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page