{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/2"}],"enrichment":{"capability":"Exports Django application metrics (requests, database queries, cache operations, model changes) to Prometheus for monitoring and alerting.","skillfed_tags":["django","prometheus","observability"],"use_cases":["Monitor HTTP request latency and throughput across your Django application endpoints in real time.","Track database query performance and frequency to identify slow ORM operations and N+1 problems.","Alert on cache hit/miss rates and eviction patterns to optimize caching strategy.","Export model creation, update, and deletion rates to detect anomalous data mutation patterns.","Collect migration status metrics to ensure all pending database migrations are applied.","Add custom application-level metrics alongside Django internals using prometheus-client directly."],"what_it_does":"django-prometheus is a Django middleware and instrumentation library that automatically collects and exports application metrics in Prometheus format. It hooks into Django's request/response cycle, ORM database operations, cache framework, and model lifecycle to generate counters, histograms, and gauges that Prometheus can scrape. You install it as a Django app, add two middleware classes to your stack, and expose a /metrics endpoint; the library then begins collecting latency, request counts, database query metrics, cache hit/miss rates, and model operation counts without requiring changes to your application code.\n\nThe package works with SQLite, MySQL, and PostgreSQL databases, supports filebased, memcached, and redis caches, and allows custom metric labels and namespacing. It integrates directly with prometheus-client and lets you add application-level metrics alongside the built-in Django instrumentation. Configuration is minimal\u2014you can customize latency histogram buckets and metric prefixes in settings\u2014making it suitable for both greenfield and legacy Django projects that need observability without heavy refactoring.","worth_installing":"Yes. django-prometheus is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It provides production-grade Prometheus instrumentation for Django with minimal setup\u2014add middleware and a URL include, then scrape /metrics. Suitable for any Django project that needs observability without custom instrumentation code."},"id":"django-prometheus","links":{"html":"https://skillfed.io/packages/django-prometheus","md":"https://skillfed.io/packages/django-prometheus.md","pypi":"https://pypi.org/project/django-prometheus/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-26","license_spdx":null,"license_treatment":"permissive","name":"django-prometheus","python_support":"unspecified","summary":"Django middlewares to monitor your application with Prometheus.io."},"popularity":{"monthly_downloads":4542374,"position":2285,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.5.0"}
