A simple Django Middleware for sending request data to Perf.
Project description
|PyPI version| |circle.ci builds|
Perf Django Agent
=================
``perf_agent`` 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
.. code:: bash
pip install django-perf
- Add Perf configuration to your settings
.. code:: python
PERF_CONFIG = {
"api_key": "PERF_API_KEY"
}
- Add Perf to your list of Middleware classes
.. code:: python
MIDDLEWARE_CLASSES = (
'perf.middleware.PerfMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
...
)
.. |PyPI version| image:: https://badge.fury.io/py/django-perf.svg
:target: https://badge.fury.io/py/django-perf
.. |circle.ci builds| image:: https://circleci.com/gh/perflabs/django-perf/tree/master.svg?style=shield&circle-token=21f056185e48e4d08cc62909f972ae235affacd8
:target: https://circleci.com/gh/perflabs/django-perf
Perf Django Agent
=================
``perf_agent`` 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
.. code:: bash
pip install django-perf
- Add Perf configuration to your settings
.. code:: python
PERF_CONFIG = {
"api_key": "PERF_API_KEY"
}
- Add Perf to your list of Middleware classes
.. code:: python
MIDDLEWARE_CLASSES = (
'perf.middleware.PerfMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
...
)
.. |PyPI version| image:: https://badge.fury.io/py/django-perf.svg
:target: https://badge.fury.io/py/django-perf
.. |circle.ci builds| image:: https://circleci.com/gh/perflabs/django-perf/tree/master.svg?style=shield&circle-token=21f056185e48e4d08cc62909f972ae235affacd8
:target: https://circleci.com/gh/perflabs/django-perf
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.1.3.tar.gz
(5.6 kB
view hashes)