django-healthchecks
Project description
-------------------
Simple Django app/framework to publish health check for monitoring purposes
Status
======
.. image:: https://travis-ci.org/mvantellingen/django-healthchecks.svg?branch=master
:target: https://travis-ci.org/mvantellingen/django-healthchecks
.. image:: http://codecov.io/github/mvantellingen/django-healthchecks/coverage.svg?branch=master
:target: http://codecov.io/github/mvantellingen/django-healthchecks?branch=master
.. image:: https://pypip.in/version/django_healthchecks/badge.svg
:target: https://pypi-hypernode.com/pypi/django_healthchecks/
Usage
=====
Add the following to your urls.py:
.. code-block:: python
url(r'^healthchecks/', include('django_healthchecks.urls')),
Add a setting with the available healthchecks:
.. code-block:: python
HEALTH_CHECKS = {
'postgresql': 'django_healthchecks.contrib.check_database',
'cache_default': 'django_healthchecks.contrib.check_cache_default',
'solr': 'your_project.lib.healthchecks.check_solr',
}
By default the status code is always 200, you can change this to something
else by using the `HEALTH_CHECKS_ERROR_CODE` setting:
.. code-block:: python
HEALTH_CHECKS_ERROR_CODE = 503
Home-page: https://github.com/mvantellingen/django-healthchecks
Author: Michael van Tellingen
Author-email: michaelvantellingen@gmail.com
License: MIT
Description: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.7
Classifier: Framework :: Django :: 1.8
Classifier: Framework :: Django :: 1.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Simple Django app/framework to publish health check for monitoring purposes
Status
======
.. image:: https://travis-ci.org/mvantellingen/django-healthchecks.svg?branch=master
:target: https://travis-ci.org/mvantellingen/django-healthchecks
.. image:: http://codecov.io/github/mvantellingen/django-healthchecks/coverage.svg?branch=master
:target: http://codecov.io/github/mvantellingen/django-healthchecks?branch=master
.. image:: https://pypip.in/version/django_healthchecks/badge.svg
:target: https://pypi-hypernode.com/pypi/django_healthchecks/
Usage
=====
Add the following to your urls.py:
.. code-block:: python
url(r'^healthchecks/', include('django_healthchecks.urls')),
Add a setting with the available healthchecks:
.. code-block:: python
HEALTH_CHECKS = {
'postgresql': 'django_healthchecks.contrib.check_database',
'cache_default': 'django_healthchecks.contrib.check_cache_default',
'solr': 'your_project.lib.healthchecks.check_solr',
}
By default the status code is always 200, you can change this to something
else by using the `HEALTH_CHECKS_ERROR_CODE` setting:
.. code-block:: python
HEALTH_CHECKS_ERROR_CODE = 503
Home-page: https://github.com/mvantellingen/django-healthchecks
Author: Michael van Tellingen
Author-email: michaelvantellingen@gmail.com
License: MIT
Description: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.7
Classifier: Framework :: Django :: 1.8
Classifier: Framework :: Django :: 1.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
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
File details
Details for the file django-healthchecks-0.6.0.tar.gz
.
File metadata
- Download URL: django-healthchecks-0.6.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a94ad063a77a0879372d5bd883e90a645e1fd69322299fe40b61a08dd5fe6c |
|
MD5 | b68f6a3e21da11ce33e2e07324da4e21 |
|
BLAKE2b-256 | e3730e487161db84df3240a167b0bcd7f5de2260c257e32298ca42dabaf84dee |
File details
Details for the file django_healthchecks-0.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_healthchecks-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a07780002171a9570bb298e8562786fa81391008c106e597c4db03b36c580681 |
|
MD5 | 590c134d0c8ccf3643086ef03dadb148 |
|
BLAKE2b-256 | af1c1f3e862176a071578cdcbf4345e24d0f9e010e1589dfd9b5ef4bfd55b3f9 |