Framework around health checks, smoke tests and diagnoses: monitor your applications and services at runtime.
Project description
hospital is a Python framework to write health checks, smoke tests or diagnoses around applications or services.
Abstract
Health checks are kind of tests, applied to running applications and services:
write healtchecks just as you would write tests, using assertions;
collect and run healthchecks with test runners;
use healthchecks to validate deployments;
plug healthchecks in supervision and monitoring tools;
in case of incidents, use healthchecks to diagnose problems.
Example
In your project’s root package, have a healthchecks package or module, where you assert your (running) application or service is ok:
import unittest
import hospital
@hospital.healthcheck
class DocumentationHealthCheck(unittest.TestCase):
def test_http_200(self):
url = 'http://hospital.readthedocs.org/en/0.6/'
hospital.assert_http_response(url, status_code=200)
Then you can collect and run the healthchecks with command line or web service. Here is an example with command line:
$ hospital-cli <YOUR-PACKAGE>.healthchecks
Project status
hospital is not full-featured yet. Some important features are in the roadmap. See also vision.
Of course, any ideas, feedback or help are welcome :)
Resources
Documentation: https://hospital.readthedocs.org
IRC: #python-hospital on freenode
Mailing-list: pythonhospital@librelist.com, see archives at http://librelist.com/browser/pythonhospital/
PyPI page: https://pypi-hypernode.com/pypi/hospital
Code repository: https://github.com/python-hospital/hospital
Continuous integration: https://travis-ci.org/python-hospital/hospital
Bugs & feature requests: https://github.com/python-hospital/hospital/issues
Changelog: https://hospital.readthedocs.org/en/latest/about/changelog.html
Roadmap: https://github.com/python-hospital/hospital/issues/milestones
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
File details
Details for the file hospital-0.8.zip
.
File metadata
- Download URL: hospital-0.8.zip
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637e17036d68edc5753ddacf827f87d748df407cd4d67c4b0451123d167a58a2 |
|
MD5 | 61e86b6110d50dd7a8235695f7ae2d91 |
|
BLAKE2b-256 | 2ee5cd80427438e87042e9e8d080e0b8bf725ebbe7e0f8fc12340cb068947d46 |