Skip to main content

Django Performance Monitor

PyPI - Python Version PyPI - License PyPI - Django Version

Django Performance monitor is simple django application for tracking the view which takes more time than a threshold value (By default 1.5 Seconds). Also using a Configuration in admin we turn on or off this feature

Installation

$ pip install django-performance-monitor

Requirements

  • Python3.6+

Usage

  • Add django_performance_monitor to the installed app in the settings file,
    INSTALLED_APPS = (
    # other apps
    "django_performance_monitor",
    )
  • Add django_performance_monitor.middleware.LogRequestMiddleware to the MIDDLEWARE in the settings,
   MIDDLEWARE = [
   #other middlewares
   'django_performance_monitor.middleware.LogRequestMiddleware'
   ]
  • Set the LOG_THRESHOLD value above which we need to log the request in settings.py, By default its values is 1.5 Seconds
   LOG_THRESHOLD = 2.05
  • Run python manage.py migrate,
    $ python manage.py migrate 

All the requests are logged to Request logs under the app DJANGO_PERFORMANCE_MONITOR To disable this logging go to Config under the app DJANGO_PERFORMANCE_MONITOR, if there is no config object create one with Is active un checked. If exist change to ** Is active ** to un checked.

Communication

  • If you find a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Author

Afsal Salim, afsal@parseltongue.co.in

License

Django Performance Monitor is available under the MIT license. See the LICENSE file for more info.

Metadata

Release files for django-performance-monitor 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-performance-monitor 1.0.0
File Size Uploaded Provenance
django-performance-monitor-1.0.0.tar.gz 4.8 kB Without provenance Details

Release files / django-performance-monitor-1.0.0.tar.gz

Download URL django-performance-monitor-1.0.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2835fb524fa5ef5f26b4eb22314827eca70ba673eb3143cdef9042d87af49680
BLAKE2b-256 checksum
How to use checksums
aa1df8ae5b1512471806798aa0aff68cf787aec936dd91aa8a1cfee09a5a881f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Security for django-performance-monitor 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page