Skip to main content

A Django app to help track system health and give real-time feedback.

Project description

https://img.shields.io/pypi/l/django-health-monitor.svg https://img.shields.io/pypi/pyversions/django-health-monitor.svg https://badge.fury.io/py/django-health-monitor.png https://travis-ci.org/gracenote/django-health-monitor.png?branch=master https://img.shields.io/codecov/c/github/gracenote/django-health-monitor/master.svg

A Django application to help track the health of assets within a “system” or “population” and give real-time feedback.

Background

This project was born from a need to quickly identify system problems across production applications. Monitoring scripts were run in Jenkins and the number of emails generated reporting problems quickly became unmanageable, which resulted in the underlying logic in this application.

This application was created in an effort to represent a general model where assets with unique identifiers (uids) are being monitored repeatedly, and it is necessary to see elevated states on an individual basis, but more importantly on a “system”-wide or “population”-wide basis.

Documentation

The full documentation is at https://django-health-monitor.readthedocs.org.

Quickstart

django-health-monitor is available on PyPI and can be installed using pip:

$ pip install django-health-monitor

After installing, add 'health_monitor' to INSTALLED_APPS in settings.py.

Features

  • Configurable scoring logic that translates raw test results to normalized “health scores”.

  • API endpoints that allow monitoring scripts to post test results based on a test name, unique identifier of an asset, and test results. Posting a test result also updates the asset’s “health state score”, “health severity score”, and “health score history” for faster alert calculations.

  • API endpoints for retrieving historical test results of an asset.

  • API endpoints for retrieving an asset’s current health metrics - state scores, severity scores, and score history.

  • API endpoints that identify assets within a “system” or “population” that exhibit elevated health states based off of four criteria - score, aggregate percent, repetition, and repetition percent.

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ python runtests.py

Credits

There were many people involved in creating this application that were not involved with the coding, but deserve a bulk of the credit. They helped design the application’s underlying logic, and continually used it and recommended new ways to quickly extract insight. They will not be named specifically, but their help was invaluable.

Thank you Gracenote for encouraging involvement in open-source projects.

Tools used in rendering this package:

History

0.1.0 (2016-11-04)

  • First release on PyPI.

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-health-monitor-0.2.3.tar.gz (20.6 kB view hashes)

Uploaded Source

Built Distribution

django_health_monitor-0.2.3-py2.py3-none-any.whl (21.4 kB view hashes)

Uploaded Python 2 Python 3

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