Skip to main content

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

  1. Install the package.
  2. Add it to INSTALLED_APPS.
INSTALLED_APPS = [
    ...
    'django-healthkit',
    ...
]
  1. Add to Settings.py:
HEALTHKIT = {
    "CHECKS": [
        "django_healthkit.checks.database.DatabaseCheck",
        "django_healthkit.checks.cache.CacheCheck",
    ],
}
  1. Include the health check URL.
from django.urls import path

from django_healthkit.views import HealthView

urlpatterns = [
    ...
    path("health/", HealthView.as_view(), name="health"),
    ...
]
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_healthkit-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_healthkit-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for django_healthkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f5b2b02b558b03faf92703fb7c8cf11d5c3e1b009ca5f5856013189e7a02f238
MD5 0aad4e8b12a486bbd9120e45034fcdeb
BLAKE2b-256 0f4e31e074a1cbeb13c3c2049904454aa66150749dde82c56fe07f78aa5dfb72

See more details on using hashes here.

File details

Details for the file django_healthkit-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_healthkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50f2d75dac1bf9a21055ecde74610d6aa7d9a4282d18534815cf3622e17d71d2
MD5 b43801e8f27b75a7f19553126d40ccd4
BLAKE2b-256 aa182060cf12ba82b915bedf80f984b017d8e9a9777c81786411203049b924fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page