Skip to main content

Auklet performance monitoring agent for Django apps

Project description

Auklet - Problem Solving Software for Django

Auklet for Django

Maintainability Test Coverage

This is the official Django agent for Auklet. It officially supports Django 1.7+, and runs on most POSIX-based operating systems (Debian, Ubuntu Core, Raspbian, QNX, etc).

Features

  • Automatic report of unhandled exceptions
  • Location, system architecture, and system metrics identification for all issues

Quickstart

To install the agent with pip:

pip install django-auklet

To setup Auklet monitoring for you application simply include it in your INSTALLED_APPS:

INSTALLED_APPS = (
    'auklet',
    ...,
)

Then go and create an application at https://app.auklet.io/ to get your config settings:

AUKLET_CONFIG = {
    "api_key": "<your api key>",
    "application": "<your application id>",
    "organization": "<your organization id>"
}

Authorization

To authorize your application you need to provide both an API key and app ID. These values are available in the connection settings of your application as well as during initial setup.

Optional: Release Tracking

You can track releases and identify which servers are running what variant of code. To do this, you may provide the git commit hash of your deployed code and a version string you can modify. This release value should be passed into the settings variable through the release key, and your custom version should be passed via the version key. The release value must be the git commit hash that represents the deployed version of your application. The version value is a string that you may set to whatever value you wish to define your versions. Please note that you can provide either a release value, version value, or both.

  • Providing release enables code snippets to be shown for identified errors if you’ve linked your GitHub.
  • Including version allows you to track what version of code had the issue.
curl -X POST https://api.auklet.io/v1/releases/ \
            -H "Content-Type: application/json" \
            -H "Authorization: JWT <your api key>" \
            -d '{"application": "<your application id>", "release": "'$(git rev-parse HEAD)'", "version": "<your own version>"}'

You can get a pre constructed curl request from the setup directions at Auklet.

AUKLET_CONFIG = {
    "api_key": "<your api key>",
    "application": "<your application id>",
    "organization": "<your organization id>",
    "release": "<the git hash of your deployed code>",  # Optional
    "version": "1.2.3"
}

Middleware Error Handling

To set up default Django middleware error handling, add the Auklet middleware to the end of your middleware configs:

MIDDLEWARE = (
    ...,
    "auklet.middleware.AukletMiddleware",
)

If you are already using an error handling middleware which returns a response, you need to disable it or do the following before you return a response; this ensures that the signal is sent to the Auklet middleware.

got_request_exception.send(sender=self, request=request)

Questions? Problems? Ideas?

To get support, report a bug or suggest future ideas for Auklet, go to https://help.auklet.io and click the blue button in the lower-right corner to send a message to our support team.

Resources

Project details


Download files

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

Source Distribution

django-auklet-0.6.0b257.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

django_auklet-0.6.0b257-py2.py3-none-any.whl (20.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-auklet-0.6.0b257.tar.gz.

File metadata

  • Download URL: django-auklet-0.6.0b257.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for django-auklet-0.6.0b257.tar.gz
Algorithm Hash digest
SHA256 61941c0566f3cf5f0d666ccf553b2272b154253d73fc0c91049e5c7eae04a7b7
MD5 ee8a6a84ef8406293a1287e37532470e
BLAKE2b-256 424bfc6747f24bd61940daab600b657c74139287a1d1ffb834e89af654306fba

See more details on using hashes here.

File details

Details for the file django_auklet-0.6.0b257-py2.py3-none-any.whl.

File metadata

  • Download URL: django_auklet-0.6.0b257-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for django_auklet-0.6.0b257-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3396ad97f6617fef673943b1bcde1047e03f15cca36d734d403159a07d0e2c16
MD5 733ad85bd35b19bb4626ecc37ea92f8e
BLAKE2b-256 64017e0036385193a2bcad2a480496ada9215fe87c53cdd6e14b7231fe89150f

See more details on using hashes here.

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