Skip to main content

# 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://github.com/conorbranagan/django-datadog.git cd django-datadog python setup.py install `

Add datadog to your list of installed apps.

`python INSTALLED_APPS += ('datadog') `

Add the following configuration to your projects’ settings.py 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 https://app.datadoghq.com/account/settings#api

Add the Datadog request handler to your middleware in settings.py.

`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](https://dl.dropbox.com/u/126553/django-datadog.png)

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.

Release files for ak-django-datadog 0.1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ak-django-datadog 0.1.0.5
File Size Uploaded
ak-django-datadog-0.1.0.5.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ak-django-datadog 0.1.0.5
File Interpreter ABI Platform
ak_django_datadog-0.1.0.5-py2-none-any.whl Python 2 none any Details

Total release size: 7.4 kB

Release files / ak-django-datadog-0.1.0.5.tar.gz

Download URL ak-django-datadog-0.1.0.5.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cddfaf69a20d0f7e344587e3aae598002c99b298fb728ecb4ec1ab9ac8df4354
BLAKE2b-256 checksum
How to use checksums
daf77bd5427dabd4aedd18d66c26cc0f81b865560743b84ec5eac72c769b382f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ak_django_datadog-0.1.0.5-py2-none-any.whl

Download URL ak_django_datadog-0.1.0.5-py2-none-any.whl
Size 4.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
d99f730171f4d191ebb5c5362cc8a41c470a19fd7e0f509785fc2d1d0ee66f04
BLAKE2b-256 checksum
How to use checksums
90dd80bbd8b0d6fd5f0454408adce1c0dc90758586bc201d357bc4f3cdec2c17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0.5 This release

2 release files

0.1.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page