Skip to main content

Wrapper for PyMongo Connection that offers additional application level monitoring.

Project description

Copyright 2010 - James Townley & Brian Richardson
Release under Apache-BSD style license

Source: http://github.com/jtownley/PyMongo-Frisk


Version: 0.0.1

----------------------------------
Description
----------------------------------

Wrapper for PyMongo Connection that offers additional application level
monitoring.
When connecting to multiple MongoDB servers, allows you to verify connectivity
to MongoDB slave servers.

----------------------------------
Problem this solves
----------------------------------

Although the built in monitoring page for mongo is awesome it misses one
situation.
This is when the mongo servers can talk to each other and the app can talk to
the master but the application has not been verified to be able to communicate
with the slave.

_______________
| |
| APPLICATION |
|_______________|
/ \
/ (X)
_______/___ ___\_______
| | | |
| Master |-----| Slave |
|___________| |___________|


----------------------------------
Usage
----------------------------------

Use it as you would pymongo and call the check health method on connection

import pymongo_frisk as pymongo

connection =
pymongo.connection.Connection.from_uri("mongo://username:password@host1,host2/da
tabase")
results = connection.check_health()

results is a dictionary as follows:
{'db_master_url': 'host2', 'db_slave_url': 'host1', 'db_master_can_write': True,
'db_slave_can_read': True, 'db_master_can_read': True}

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

pymongo_frisk-0.0.1.tar.gz (1.8 kB view hashes)

Uploaded Source

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