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 hashes)

Uploaded Source

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