Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Simple Django middleware for submitting timings and exceptions to Datadog.

Project description

# Django Datadog

A simple Django middleware for submitting timings and exceptions to Datadog.

## Installation

Download the code into your project and install it.

`bash git clone git:// cd django-datadog python install `

Add datadog to your list of installed apps.

`python INSTALLED_APPS += ('datadog') `

Add the following configuration to your projects’ file:

`python DATADOG_API_KEY = 'YOUR_API_KEY' DATADOG_APP_KEY = 'YOUR_APP_KEY' DATADOG_APP_NAME = 'my_app' # Used to namespace metric names `

The API and app keys can be found at

Add the Datadog request handler to your middleware in

`python MIDDLEWARE_CLASSES += ('datadog.middleware.DatadogMiddleware') `

## Usage

Once the middlewhere installed, you’ll start receiving events in your Datadog stream in the case of an app exception. Here’s an example:

![example django exception](

You will also have new timing metrics available:

  • my_app.request_time.{avg,max,min}
  • my_app.errors

Metrics are tagged with path:/path/to/view

Note: my_app will be replaced by whatever value you give for DATADOG_APP_NAME.

Project details

Release history Release notifications

This version
History Node

History Node

History Node

History Node

History Node

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ak_django_datadog- (4.7 kB) Copy SHA256 hash SHA256 Wheel py2 Feb 29, 2016
ak-django-datadog- (2.7 kB) Copy SHA256 hash SHA256 Source None Feb 29, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page