{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/2"}],"enrichment":{"capability":"Collects and exports Prometheus metrics for Starlette and FastAPI applications, tracking request counts, response times, and concurrent request volumes with configurable labels and histogram buckets.","skillfed_tags":["prometheus","observability","middleware"],"use_cases":["Monitor request latency distribution and identify performance regressions in Starlette services.","Track concurrent request volume to detect capacity issues and inform auto-scaling decisions.","Add custom labels from headers to correlate metrics with deployment environment or tenant information.","Exclude health-check or probe endpoints from metrics collection to reduce noise and cardinality.","Integrate trace IDs as exemplars in Prometheus histograms to link metrics to distributed traces."],"what_it_does":"starlette_exporter is a middleware that automatically instruments Starlette applications to collect HTTP metrics compatible with Prometheus. It tracks three core metrics: total request count (starlette_requests_total), request duration distribution (starlette_request_duration_seconds), and concurrent requests in progress (starlette_requests_in_progress). Each metric is labeled by HTTP method, request path, and response status code, allowing fine-grained monitoring and alerting.\n\nThe middleware integrates as a standard Starlette middleware and exposes metrics via a /metrics endpoint that Prometheus can scrape. It supports customization through options like custom labels (static or request-derived), histogram bucket configuration, path grouping for cardinality control, and filtering or grouping of unhandled paths. It also provides helper functions to extract label values from request or response headers with cardinality constraints.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a standard need for Prometheus monitoring of web applications. The permissive Apache 2.0 license poses no restrictions. Install it if you run Starlette and need Prometheus metrics without writing custom instrumentation."},"id":"starlette-exporter","links":{"html":"https://skillfed.io/packages/starlette-exporter","md":"https://skillfed.io/packages/starlette-exporter.md","pypi":"https://pypi.org/project/starlette-exporter/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-29","license_spdx":null,"license_treatment":"permissive","name":"starlette-exporter","python_support":"supports_current","summary":"Prometheus metrics exporter for Starlette applications."},"popularity":{"monthly_downloads":1916953,"position":3434,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.24.0"}
