Skip to content

TwigWorld/ya-dancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YA DANCER ! (Health Check Status)

Get a response json reflecting the current status of the site.

Installation

  1. Install the package
python setup.py
  1. Go to setting.py and add ya-dancer to your installed app:
INSTALLED_APPS = (
    'ya_dancer',
)
  1. Go to the main urls.py of your project and add the following:
url(r'^health-check-status/', include('ya_dancer.urls')),

Basic Usage

You need to go to the health-check-status/ relative url, you should get a JSON response like:

{"app_status": "ok", "db": "ok"}

Check selected items

  • To check app status:

health-check-status/app/

response:

{"app_status": "ok"}
  • To check database status:

health-check-status/db/

response:

{"db": "ok"}

MongoDB

requires mongoengine

To check mongodb: health-check-status/mongodb/

or with other status checks: health-check-status/?mongodb=1

response:

{"mongo_db": "ok"}

CHECK IT MATE !

Ya Dancer !

About

Adds health check status url for django applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages