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://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 += ('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:
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for avk-django-datadog-0.1.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db4c0a5cfa7cd3eb51c2260195a9a7973c9212b069a8d484f7b457a512627176 |
|
MD5 | 056302f11601e8ba0413d5f014c5a1c2 |
|
BLAKE2b-256 | 5822cff5687024d14bc0b750a73d0b901bcdb53db579d9b8f177147b0f2a419c |
Hashes for avk_django_datadog-0.1.0.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5436cad695dfcc2c0e0fe3d914f09ec2c6aa106cb51f5a548fbdacdbfc22b2f |
|
MD5 | e851c4e45221c49069fdbeb7ed1d28d8 |
|
BLAKE2b-256 | 1a420f35b11e1f1bbca2a4fe002ae16b4e40865be99f7868dd1d3cb730673b2c |