Skip to main content

Additional health checks for django-alive

Project description

PyPI version Build status

django-alive-checks is a Django application that provides additional health checks for your Django projects. These checks are designed to work with the django-alive package but include dependencies that cannot be part of django-alive itself.

Installation

You can install the base package with:

pip install django-alive-checks

If you want to include support for Elasticsearch, install with:

pip install django-alive-checks[elasticsearch]

Integration with django-alive

To integrate the check_elasticsearch function with your django-alive checks, you can add it to your health checks configuration:

# settings.py

ALIVE_CHECKS = [
    ...
    ("alive_checks.checks.check_elasticsearch", {"settings": ES_SETTINGS}),
]

Where the ES_SETTINGS contains settings that you pass to elsaticsearch.Elasticsearch.

Testing

To run the tests for this project:

python -m unittest discover

The tests cover the following scenarios:

  • Successful connection to Elasticsearch.

  • Failed connection to Elasticsearch.

  • Exceptions during connection attempts.

  • Handling the absence of the elasticsearch package.

Contributing

Contributions are welcome! If you encounter any issues, have ideas for improvements, or want to add more checks, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgments

Thanks to the Django and Elasticsearch communities for their continued support and development of the libraries that make this project possible.

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_alive_checks-0.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

django_alive_checks-0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file django_alive_checks-0.2.tar.gz.

File metadata

  • Download URL: django_alive_checks-0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for django_alive_checks-0.2.tar.gz
Algorithm Hash digest
SHA256 d887429312f4c68f34435bd67cfa6daf3fa259f41acc149dbd21c7f4594ef50d
MD5 6225d53185d87e45230662b9f7c284ab
BLAKE2b-256 1d56fdb82664b2284a8d326635f07d7b280a734230483ce36a3fa597410cc88c

See more details on using hashes here.

File details

Details for the file django_alive_checks-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_alive_checks-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa7787011e8aa0576319a41ce7dcb9e5ae8b4c81db507183f76126ea9b7c1a1d
MD5 368f00ee14e740fc57da35ea585b74e8
BLAKE2b-256 38b694874699aae217dbac85c8ee133eaae031343131d7cb74cfdcfd83d6e1a6

See more details on using hashes here.

Supported by

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