Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A simple Django Middleware for sending request data to Perf.

Project description

PyPI version circle.ci builds

Perf Django Agent

perf is a middleware that will record timing and status codes of the connections in the Django framework and send the data to Perf. We then run analytics on that data to generate metrics and alerts.

Installation

  • Easily install Perf via pip
pip install django-perf
  • Add Perf configuration to your settings
PERF_CONFIG = {
   "api_key": "PERF_API_KEY"
}
  • Add Perf to your list of installed apps and middleware classes
INSTALLED_APPS = (
   'perf',
   ...
)

MIDDLEWARE_CLASSES = (
   'perf.middleware.PerfMiddleware',
   'django.middleware.common.CommonMiddleware',
   'django.middleware.csrf.CsrfViewMiddleware',
   ...
)

Project details


Download files

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

Files for django-perf, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size django-perf-0.2.0.tar.gz (17.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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