This package is used to monitor and manage requests
Project description
Django telemetry
This package is used to monitor and manage requests
Detailed documentation is in the “docs” directory.
Quick start
Add “django_telemetry” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'django_telemetry', ]
Include the telemetry URLconf in your project urls.py like this:
path('telemetry/', include('django_telemetry.urls')),
Add ‘django_telemetry.middleware.WebTelemetryMiddleware’, middleware in settings.py like this:
MIDDLEWARE = [ ... 'django_telemetry.middleware.WebTelemetryMiddleware', ]
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', } }
Add DATABASE_ROUTERS to settings.py like this:
DATABASE_ROUTERS = ['django_telemetry.routers.DatabaseForTelemetry']
Run python manage.py migrate --database=django_telemetry to create the django_telemetry models.
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.