Skip to content

mrc75/django-service-status

Repository files navigation

Django Service Status

Django pluggable app to monitor the service status

Documentation

Django Service Status is a set of checks that are run every time your http://example.com/service_status/ page is visited.

Quickstart

Install Django Service Status:

pip install django-service-status

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'service_status.apps.ServiceStatusConfig',
    ...
)

Add Django Service Status's URL patterns:

from service_status import urls as service_status_urls


urlpatterns = [
    ...
    url(r'^service_status/', include(service_status_urls, namespace='service-status')),
    ...
]

Features

Builtin checks are:

  • database
  • swap memory
  • celery workers

Default settings: database, swap memory

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package: