Skip to main content

OOPS DateDir to AMQP republisher.

Project description

Copyright (c) 2011, Canonical Ltd

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

The oops_datedir2amqp package provides a script that will retransmit OOPS reports (http://pypi.python.org/pypi/oops) stored in a datedir repo over amqp, cleaning up the repo as it goes.

Dependencies

  • Python 2.6+

  • oops_datedir_repo

  • oops_amqp

Testing Dependencies

Usage

Build the package using buildout (see under Development).

Run the script:

$ bin/datedir2amqp --host XX --username XX --password XX --vhost XX \
  --exchange XX --repo XX

Note that the repo should be the same path you are supplying to your DateDirRepo in whatever process is creating OOPSes.

A common use for this setup is as a fallback: in your application report to AMQP directly, with a DateDirRepo configured as fallback, then use datedir2amqp to pickup and respool any OOPS reports that were generated while your AMQP server is unavailable.

Installation

Either run setup.py in an environment with all the dependencies available, or add the working directory to your PYTHONPATH.

Development

Upstream development takes place at https://launchpad.net/python-oops-datedir2amqp. To setup a working area for development, if the dependencies are not immediately available, you can use ./bootstrap.py to create bin/buildout, then bin/py to get a python interpreter with the dependencies available.

To run the tests use the runner of your choice, the test suite is oops_datedir2amqp.tests.test_suite.

For instance:

$ bin/py -m testtools.run oops_datedir2amqp.tests.test_suite

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

oops_datedir2amqp-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file oops_datedir2amqp-0.0.2.tar.gz.

File metadata

File hashes

Hashes for oops_datedir2amqp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5a6499835db014eb6c802af18dc5fd32f1d3b395aa6c7b8b90beabd8ed22cb78
MD5 f52cedbb07172e8d3259f29dc97afab2
BLAKE2b-256 00201104fa6f3fc6c04c44d8335e46e50327d0e6e3f0f12799fed8d9c45df60a

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