Health checks and monitoring toolkit for Django applications.
Project description
django-healthkit
Lightweight and extensible health checks for Django applications.
django-healthkit helps you expose health check endpoints for your
Django services so they can be monitored by load balancers, container
platforms, and monitoring systems.
Features
- Lightweight and easy to integrate
- Health check endpoint
- Database health checks
- Cache health checks
- Storage health checks
- Custom health checks
- Extensible architecture
- Docker & Kubernetes friendly
- Ready for production
- Fully typed and Pythonic
Installation
pip install django-healthkit
Quick Start
- Install the package.
- Add it to
INSTALLED_APPS.
INSTALLED_APPS = [
...
'django-healthkit',
...
]
- Add to
Settings.py:
HEALTHKIT = {
"CHECKS": [
"django_healthkit.checks.database.DatabaseCheck",
"django_healthkit.checks.cache.CacheCheck",
],
}
- Include the health check URL.
from django.urls import path
from django_healthkit.views import HealthView
urlpatterns = [
...
path("health/", HealthView.as_view(), name="health"),
...
]
- Visit the endpoint to verify your application's health.
Example Response
{
"healthy": true,
"checks": [
{
"name": "database",
"healthy": true,
"message": "Database is healthy.",
"latency": 0.49
},
{
"name": "cache",
"healthy": true,
"message": "Cache is healthy.",
"latency": 0.57
}
]
}
Why django-healthkit?
Modern applications need a simple way to expose their health status for deployment platforms and monitoring tools.
django-healthkit provides a clean, extensible foundation that lets you add built-in and custom health checks without unnecessary complexity.
Roadmap
- Built-in health checks
- Custom check API
- Async health checks
- Detailed check reports
- Prometheus integration
- OpenTelemetry support
Contributing
Contributions, issues, and feature requests are welcome.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_healthkit-0.1.0.tar.gz.
File metadata
- Download URL: django_healthkit-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5b2b02b558b03faf92703fb7c8cf11d5c3e1b009ca5f5856013189e7a02f238
|
|
| MD5 |
0aad4e8b12a486bbd9120e45034fcdeb
|
|
| BLAKE2b-256 |
0f4e31e074a1cbeb13c3c2049904454aa66150749dde82c56fe07f78aa5dfb72
|
File details
Details for the file django_healthkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_healthkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50f2d75dac1bf9a21055ecde74610d6aa7d9a4282d18534815cf3622e17d71d2
|
|
| MD5 |
b43801e8f27b75a7f19553126d40ccd4
|
|
| BLAKE2b-256 |
aa182060cf12ba82b915bedf80f984b017d8e9a9777c81786411203049b924fc
|