Skip to content

rehive/django-healthz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rehive Logo

Django Healthz

Simple Django healthcheck middleware

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.

About

Simple middleware for healthchecks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages