Django 4,5674,567
Django metrics dashboard showing request latency, top long executing views, database and cache status. Uses django-prometheus metrics exporter.
Application label is injected in Prometheus configuration to distinguish virtual hosts:
- job name: django
static_configs:
- targets: ['localhost:9110']
labels:
app: 'somesite'
Used Metrics 1515
django_http_requests_total_by_transport_total
django_http_responses_total_by_status_total
django_db_errors_total
django_db_new_connection_errors_total
django_cache_get_hits_total
django_cache_get_total
django_http_requests_latency_including_middlewares_seconds_bucket
django_http_responses_body_total_bytes_bucket
django_http_requests_latency_seconds_by_view_method_bucket
topk
django_http_requests_latency_seconds_by_view_method_count
present_over_time
django_http_requests_total_by_view_transport_method_total
django_db_execute_total
django_db_query_duration_seconds_bucket