{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/8"},{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/5"},{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/3"},{"label":"HTTP Servers","url":"https://skillfed.io/packages/category/internet-www-http-http-servers"}],"enrichment":{"capability":"Adds Prometheus metrics collection and exposure to Starlette web applications, allowing you to instrument HTTP request/response behavior and expose metrics via a `/metrics/` endpoint.","skillfed_tags":["observability","prometheus","middleware"],"use_cases":["Expose HTTP request metrics to Prometheus for monitoring Starlette application performance and availability.","Track request latency, error rates, and throughput to feed into alerting and dashboarding systems.","Debug and profile application behavior by analyzing request patterns and response times over time.","Integrate observability into microservices built with Starlette without writing custom instrumentation code."],"what_it_does":"Starlette Prometheus is a middleware package that integrates Prometheus metrics collection into Starlette web applications. It automatically instruments HTTP requests and responses, collecting metrics like request counts, latencies, and response codes, then exposes them via a `/metrics/` endpoint that Prometheus can scrape. The package wraps Starlette's middleware system to intercept requests transparently.\n\nThe package depends on starlette and prometheus_client to function. It's straightforward to set up\u2014add the middleware and route the metrics endpoint\u2014but requires careful configuration when handling dynamic or unmatched routes, as unfiltered path tracking can consume unbounded memory. The package supports Python 3.8 through 3.12 and is marked Production/Stable, though development has been dormant since its last release.","worth_installing":"Yes, if you need Prometheus metrics for a Starlette application and accept the GPL-3.0+ copyleft license. Install friction is low and the package is stable. However, dormant maintenance means you should verify compatibility with your Starlette version and be prepared to fork or patch if issues arise. Not suitable if your project cannot comply with GPL-3.0+ licensing."},"id":"starlette-prometheus","links":{"html":"https://skillfed.io/packages/starlette-prometheus","md":"https://skillfed.io/packages/starlette-prometheus.md","pypi":"https://pypi.org/project/starlette-prometheus/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-09-03","license_spdx":null,"license_treatment":"copyleft","name":"starlette-prometheus","python_support":"supports_current","summary":"Prometheus integration for Starlette"},"popularity":{"monthly_downloads":432478,"position":6708,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.10.0"}
