Django pluggable app to monitor the service status
Django Service Status is a set of checks that are run every time your http://example.com/service_status/ page is visited.
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')),
...
]
Builtin checks are:
- database
- swap memory
- celery workers
Default settings: database, swap memory
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Tools used in rendering this package: