Skip to main content

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.

Source Distribution

django-perf-0.2.0.tar.gz (17.0 kB view details)

Uploaded Source

File details

Details for the file django-perf-0.2.0.tar.gz.

File metadata

  • Download URL: django-perf-0.2.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-perf-0.2.0.tar.gz
Algorithm Hash digest
SHA256 24beaca5aef1805686c8bf70a5f3a86c85550ed5db517daded8314a1d2ae8cca
MD5 5e871b3e65846e6c35fe65233df4d93d
BLAKE2b-256 445e8d3ae5f02bc5d405e853653109b7ed9c8f4943776469984e1fe47586246b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page