Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Simple Django app/framework to publish health checks

Project description

Simple Django app/framework to publish health check for monitoring purposes



pip install django_healthchecks


Add the following to your

url(r'^healthchecks/', include('django_healthchecks.urls')),

Add a setting with the available healthchecks:

    'postgresql': 'django_healthchecks.contrib.check_database',
    'cache_default': 'django_healthchecks.contrib.check_cache_default',
    'solr': 'your_project.lib.healthchecks.check_solr',

You can also include healthchecks over http. This is useful when you want to monitor if depending services are up:

    'my_microservice': '',

By default, http health checks will time out after 500ms. You can override this as follows:


By default the status code is always 200, you can change this to something else by using the HEALTH_CHECKS_ERROR_CODE setting:


You can also add some simple protection to your healthchecks via basic auth. This can be specified per check or a wildcard can be used *.

    '*': [('admin', 'pass')],
    'solr': [],

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django_healthchecks, version 1.4.2
Filename, size File type Python version Upload date Hashes
Filename, size django_healthchecks-1.4.2-py2.py3-none-any.whl (7.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-healthchecks-1.4.2.tar.gz (8.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page