{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring"}],"enrichment":{"capability":"Adds Prometheus metrics collection and exposure to FastAPI applications with minimal setup, tracking HTTP request counts, sizes, durations, and custom metrics.","skillfed_tags":["observability","metrics-collection","prometheus"],"use_cases":["Monitor request latency and throughput across FastAPI endpoints for performance analysis","Track HTTP response and request sizes to identify bandwidth bottlenecks","Expose metrics to Prometheus for alerting on error rates or slow endpoints","Build custom metrics to track application-specific events like language preferences or business logic counters","Conditionally enable metrics collection in multi-service deployments via environment variables"],"what_it_does":"prometheus-fastapi-instrumentator is a middleware library that automatically collects and exposes Prometheus metrics from FastAPI applications. It wraps your FastAPI app to track HTTP request counts, response sizes, request sizes, and request duration across multiple histogram buckets, with metrics grouped by handler, status code, and HTTP method. The library exposes these metrics on a `/metrics` endpoint ready for Prometheus scraping.\n\nOut of the box it provides five default metrics: a counter for total requests, summaries for request and response sizes, and histograms for request duration at both standard and high-resolution bucket levels. You can customize or extend metrics using pre-built closures from the metrics module or write your own instrumentation functions. Configuration options include regex-based route exclusion, environment variable control, label customization, gzip compression, and in-progress request tracking.","worth_installing":"Yes. Low install friction, active maintenance, permissive license, and no known vulnerabilities make this a safe choice. The two-line fast-track setup with sensible defaults covers common monitoring needs, while advanced configuration options support specialized use cases. Suitable for production FastAPI deployments that need Prometheus integration."},"id":"prometheus-fastapi-instrumentator","links":{"html":"https://skillfed.io/packages/prometheus-fastapi-instrumentator","md":"https://skillfed.io/packages/prometheus-fastapi-instrumentator.md","pypi":"https://pypi.org/project/prometheus-fastapi-instrumentator/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-26","license_spdx":null,"license_treatment":"permissive","name":"prometheus-fastapi-instrumentator","python_support":"supports_current","summary":"Instrument your FastAPI app with Prometheus metrics"},"popularity":{"monthly_downloads":16089530,"position":1162,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"8.1.0"}
