olist / django-healthy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-healthy

PyPI - Version PyPI - Python Version


Table of Contents

Installation

First, install the django-healthy package:

pip install django-healthy

In your settings.py, configure HEALTH_CHECK_BACKENDS with your desired indicators.

HEALTH_CHECK_BACKENDS = {
    "cache": {
        "BACKEND": "healthy.backends.CacheHealthBackend",
    },
    "db": {
        "BACKEND": "healthy.backends.DatabasePingBackend",
    },
}

Lastly, add django-healthy's routes to your urls.py:

path("", include("healthy.urls")),

This adds two routes:

  • /ping/
  • /health/

License

django-healthy is distributed under the terms of the MIT license.

About

License:MIT License


Languages

Language:Python 100.0%