Django HealthCheck is a plug-and-play Django application that provides a /healthcheck/ endpoint to monitor the health of your Django app and its connected services like databases, caches, storage, Celery, and more. It returns HTTP 200 for healthy status and HTTP 500 if issues are detected. The current version is 4.2.2, and it maintains a regular release cadence with frequent updates and bug fixes.
pip install django-health-checkVerified import paths — ran on the pinned version, not inferred.
To quickly integrate Django HealthCheck, add the 'health_check' core app and any desired `health_check.contrib.*` plugins to your `INSTALLED_APPS`. Then, include the health check URLs in your project's `urls.py`. Remember to install extra dependencies for specific checks (e.g., `psutil` for disk/memory checks).
Consult the official migration guide for `django-health-check` when upgrading.
Install optional dependencies using `pip install django-health-check[extra_package_name]` (e.g., `pip install django-health-check[psutil]`) or install the specific package directly (e.g., `pip install psutil`).
If you relied on this check, you may need to implement a custom check or find an alternative monitoring solution for database migrations.
Generate a separate, strong secret token for the health check URL (e.g., using `secrets.token_urlsafe()`) and configure your URL accordingly. Ensure HTTPS is enabled.
Account for node-specific responses in your monitoring strategy or consider aggregate metrics from a dedicated monitoring system.