Performance Monitoring for Django apps

Application Performance Monitoring with Airbrake makes it easy to:

  • Understand high-level performance: Quickly see a broad performance overview for your whole application.
  • Monitor user satisfaction: Measure user satisfaction with your app performance using Apdex.
  • Catch problem routes: Identify routes with slow or error-prone performance.
  • Analyze granular performance metrics: Zoom into specific endpoints to see time spent in the DB, view, cache, external requests, and more.
  • Dive into database performance: Analyze SQL database queries being called and how long they take.
  • Track your background jobs: Monitor background job performance, track job failures and durations.

Django Support

Django support for Performance Monitoring is currently in early access

The pybrake package makes it quick and easy to monitor your Django app’s performance. It only takes a few minutes to start collecting real performance data so let’s jump right in!

Step 1: Install the latest version of pybrake

Airbrake for Django uses our official Python notifier pybrake. To install run:

pip install pybrake

Step 2: Configure the Airbrake Django middleware

First you need to add your pybrake config to your Django file using your project’s id and api_key.

AIRBRAKE = dict(

The next step is activating the Airbrake middleware.


The last step is configuring the airbrake logging handler. After that you are ready to start reporting errors to Airbrake from your Django app.

    'version': 1,
    'disable_existing_loggers': False,
    'handlers': {
        'airbrake': {
            'level': 'ERROR',
            'class': 'pybrake.LoggingHandler',
    'loggers': {
        'app': {
            'handlers': ['airbrake'],
            'level': 'ERROR',
            'propagate': True,


Great job! If you’ve used this example in your app, you can visit your Airbrake project’s Performance Dashboard to see your performance data! Soon enough you’ll have more insights into your application’s performance. In the meantime why not check out the Performance Dashboard features. Have questions about Performance Monitoring? Check out our Performance Monitoring FAQ for more information.

Want to learn more?

Want to learn more about pybrake? Check out our official GitHub repo.