Skip to main content

A Django app to respond to AWS health checks

Project description

django-openstax-healthcheck is a Django middleware to intercept /ping and /ping/ requests from AWS. This is required when using OpenStax IaC for deployment.

Quick start

Add the following settings to your settings file::

# Add to middleware, be sure it's before CommonMiddleware
MIDDLEWARE = [
    # ... (optional before)
    'healthcheck.middleware.HealthCheckMiddleware',
    # ... (optional between)
    'django.middleware.common.CommonMiddleware',
    # ... (optional after CommonMiddleware)
]

Usage

Add something like this to your logging configuration:

import logging
logging.config.dictConfig({
    # ...
    'filters': {
        'healthcheck_filter': {
            '()': 'healthcheck.filter.HealthCheckFilter'
        },
    },
    # ...
})

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-openstax-healthcheck-1.0.tar.gz (14.7 kB view hashes)

Uploaded Source

Built Distribution

django_openstax_healthcheck-1.0-py3-none-any.whl (15.1 kB view hashes)

Uploaded 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