Skip to main content

"Top" clone for MongoDB.

Project description

Motop
=====

Realtime monitoring tool for several MongoDB servers. Shows current
operations ordered by durations every second.


Usage
-----

Install with easy_install::

easy_install motop

Install with pip::

pip install git+https://github.com/tart/motop.git

Download and install::

./setup.py install

Help::

motop -h

Monitor several servers::

motop 192.168.124.50 192.158.124.51


Actions
-------

q Quit

p Pause

e Explain the query

k Kill operation using "mongo" executable

K Kill operations older than given seconds using "mongo" executable

r Try to reconnect to disconnected servers

R Try to reconnect to all servers


Dependencies
------------

* python 2.6 or greater
* pymongo 2.0 or greater [1]

[1] http://pypi.python.org/pypi/pymongo/


Configuration (Optional)
------------------------

Configuration file can be created to /etc/motop.conf.

There can be multiple sections on the configuration. Each section
can include these parameters::

address
Address of the server (required)

username
Username to authenticate to the server

password
Password to authenticate to the server

status
Show status (default: on)

replicationInfo
Show replication status (default: on)

replicaSet
Show replica set status (default: on)

operations
Show operations (default: on)

replicationOperations
Show constantly appeared replication operations on the masters
and the slaves (default: on)

"DEFAULT" is the special section. Parameters can be set as default
in this section.

The names of the sections will be used as server names. These names
can alse be used on arguments of the executable.

Example configuration::

[MongoDB01]
address=10.42.2.121
replicationOperations=off

[MongoDB02]
address=10.42.2.122

[MongoDB03]
address=10.42.2.123

[MongoDB04]
address=10.42.2.124
username=foo
password=bar


License
-------

This tool is released under the ISC License, whose text is included to the
source files. The ISC License is registered with and approved by the
Open Source Initiative [1].

[1] http://opensource.org/licenses/isc-license.txt

Changelog
---------

Motop 3.0

* Change coding style according to the PEP 8 for more contribution
* Improve human readable values
* Fix replica set monitoring (UdjinM6)

Motop 3.1

* Avoid crash for operations with missing fields
* Avoid crash for failed explain, kill actions
* Rename column State of the operation block
* Show locks with operations

Motop 4.0

* Avoid crash on missing data from server
* Aviod crash on connection failures
* Add reconnect buttons
* Try to reconnect to disconnected servers after every 20 refreshes
* Use username, password from the configuration instead of from the arguments

Motop 4.1

* Avoid crash on replica set view

Motop 4.2

* Support installation with `pip`

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

motop-4.2.tar.gz (10.1 kB view details)

Uploaded Source

Built Distributions

motop-4.2-py3.4.egg (30.7 kB view details)

Uploaded Source

motop-4.2-py3.3.egg (31.1 kB view details)

Uploaded Source

motop-4.2-py3.2.egg (30.4 kB view details)

Uploaded Source

motop-4.2-py3.1.egg (30.2 kB view details)

Uploaded Source

motop-4.2-py2.7.egg (29.8 kB view details)

Uploaded Source

motop-4.2-py2.6.egg (30.0 kB view details)

Uploaded Source

File details

Details for the file motop-4.2.tar.gz.

File metadata

  • Download URL: motop-4.2.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for motop-4.2.tar.gz
Algorithm Hash digest
SHA256 9a1790a6b60a2b563b7478ea2e3a861ac3e99937b25d573e6c32c9ac907cd030
MD5 69e76972480d5ed6c8e76fd0c6851fff
BLAKE2b-256 8b75536088432630057a64870f9e158d029c52190e2ac6cbc0b8e47dfb941f9b

See more details on using hashes here.

File details

Details for the file motop-4.2-py3.4.egg.

File metadata

  • Download URL: motop-4.2-py3.4.egg
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for motop-4.2-py3.4.egg
Algorithm Hash digest
SHA256 44e5fbee28faffe40a50a847fafa60b482b2e394a5c874b6cf25253e5dc6b74b
MD5 36d21560495f64b19b5c156b8bb46c8d
BLAKE2b-256 a93755f1a67269c98ccdb668362b5833a54c0187fccc875f306b389e8ec1a0f9

See more details on using hashes here.

File details

Details for the file motop-4.2-py3.3.egg.

File metadata

  • Download URL: motop-4.2-py3.3.egg
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for motop-4.2-py3.3.egg
Algorithm Hash digest
SHA256 732a01567f0d436d3b1f0e868e0f705cb92e7dbf7fb86c7367766b62562589e4
MD5 3bc80a39de85b529a8a2d63c5f6bb8ac
BLAKE2b-256 84764ddde0e7d3789df4c8b074eb74a83865611cf237b13c7a451be98917260a

See more details on using hashes here.

File details

Details for the file motop-4.2-py3.2.egg.

File metadata

  • Download URL: motop-4.2-py3.2.egg
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for motop-4.2-py3.2.egg
Algorithm Hash digest
SHA256 5a58628c5ed837a6e6eb1ed6bf5c92a9048cedf3cce47b8a7e512f669307138b
MD5 d2c5bc7bc098a976a56ae6614599ba6f
BLAKE2b-256 6feae7798757d32971ea9e446d3eaf3dac34deaec0592b8392fdbdcdb0c9db78

See more details on using hashes here.

File details

Details for the file motop-4.2-py3.1.egg.

File metadata

  • Download URL: motop-4.2-py3.1.egg
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for motop-4.2-py3.1.egg
Algorithm Hash digest
SHA256 8f36d0395abaf8e4dc3722481ee184f92e1506921b0e3dac14939148b3d5e71f
MD5 0ff33ed1b7c9987b78df5d4428ec05d3
BLAKE2b-256 55d0651be39eb882672329bb38e5df4846e04247bec9afeb91526007060416f2

See more details on using hashes here.

File details

Details for the file motop-4.2-py2.7.egg.

File metadata

  • Download URL: motop-4.2-py2.7.egg
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for motop-4.2-py2.7.egg
Algorithm Hash digest
SHA256 6204c83ab097dbaf3bee4d8972bb12b352921858d353102a0f54e04ba014fbda
MD5 167a5e82a26f0198ba9da86a014fe35a
BLAKE2b-256 ba6e459138929456a5435c531ada8b530c00d470d767fec53b50649126cd452c

See more details on using hashes here.

File details

Details for the file motop-4.2-py2.6.egg.

File metadata

  • Download URL: motop-4.2-py2.6.egg
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for motop-4.2-py2.6.egg
Algorithm Hash digest
SHA256 753ef3931224e11971bf7034cd0e7387740e83864b0f1cfadb42798db245946e
MD5 1740ff18d51f1980a448aa4ae64d417a
BLAKE2b-256 0d99294135dcffc916865197a9b88e9806c2c1dfa98f8fe68c459a83e11b51fc

See more details on using hashes here.

Supported by

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