Skip to main content

Simple middleware for healthchecks

Project description

Rehive Django HealthCheck

Quick start

  1. Install the package:
pip install django-healthz
  1. Add "healthz" to your INSTALLED_APPS settings like this:
    INSTALLED_APPS = [
        ...
        'healthz',
    ]
  1. Include the healtheck middleware in the django middleware:
MIDDLEWARE = [
    'healthz.middleware.HealthCheckMiddleware',
    ...
]
  1. Configure the readiness checks:
HEALTHCHECK = {
    'READINESS_CHECKS': ('databases', 'caches', 'queues',)
}

TODO

  1. Update responses to JSON
  2. Allow customization or readiness and healthz URLs.

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

django-healthz-0.0.5.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file django-healthz-0.0.5.tar.gz.

File metadata

  • Download URL: django-healthz-0.0.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for django-healthz-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a151fe7e4a5a93f42701b0dc2619495354063c18e6cbfe33162c39a5afc69e89
MD5 dcbb8ccae649d52b24f2ca4a00d9e438
BLAKE2b-256 276ff6c64f75a88aac46c680349c0faf41b7e4679559e6a5b923e3bfb77afaef

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