Skip to main content

This package is used to monitor and manage requests

Project description

Django telemetry

Alternative text

This package is used to monitor and manage requests

Detailed documentation is in the “docs” directory.

Quick start

  1. Add “django_telemetry” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'django_telemetry',
    ]
  2. Include the telemetry URLconf in your project urls.py like this:

    path('telemetry/', include('django_telemetry.urls')),
  3. Add ‘django_telemetry.middleware.WebTelemetryMiddleware’, middleware in settings.py like this:

    MIDDLEWARE = [
        ...
        'django_telemetry.middleware.WebTelemetryMiddleware',
    ]
  4. Add second database in you settings.py file like this:

    DATABASES = {
        'default': {
            ...
        },
    
        'django_telemetry': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': BASE_DIR / 'db.telemetry.sqlite3',
        }
    }
  5. Add DATABASE_ROUTERS to settings.py like this:

    DATABASE_ROUTERS = ['django_telemetry.routers.DatabaseForTelemetry']
  6. Run python manage.py migrate --database=django_telemetry to create the django_telemetry models.

  7. Start the development server and visit http://127.0.0.1:8000/telemetry/

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_telemetrics-0.6.tar.gz (26.8 kB view details)

Uploaded Source

File details

Details for the file django_telemetrics-0.6.tar.gz.

File metadata

  • Download URL: django_telemetrics-0.6.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for django_telemetrics-0.6.tar.gz
Algorithm Hash digest
SHA256 0a38dc1d3748ea1e706af8adaf309372c449a40128c291c04e595c4d6e8452e5
MD5 3338a98b514cee63f815e5c7544647b7
BLAKE2b-256 7ff330945a1a8ffb2dac787969f5c796743986733f1372965e90a642727b15bc

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