{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/2"}],"enrichment":{"capability":"Exports HTTP request metrics from Flask applications to Prometheus, tracking request duration, count, exceptions, and custom metrics via decorators.","skillfed_tags":["observability","prometheus","metrics"],"use_cases":["Monitor Flask application request latency and throughput in production environments with Prometheus scraping","Track endpoint-specific metrics like request count by status code or custom business logic counters","Exclude sensitive endpoints from metrics collection using decorators or regex path patterns","Expose application version and metadata as static Prometheus gauge metrics","Group request metrics by endpoint function name instead of URI path to reduce cardinality"],"what_it_does":"Prometheus Flask exporter integrates Prometheus metrics collection directly into Flask applications. It automatically tracks HTTP request duration, request count, and uncaught exceptions using a Prometheus registry, exposing them on a `/metrics` endpoint by default. The library provides decorators to define custom metrics (counters, gauges, histograms, summaries) on individual endpoints and supports filtering which endpoints are tracked.\n\nThe package depends on prometheus_client for metric primitives and flask for the web framework. It's designed for applications that need observability into request patterns and performance without manual instrumentation of every endpoint. Configuration options allow changing the metrics endpoint path, registry, grouping strategy, and default labels applied to all metrics.","worth_installing":"Yes, with conditions. Install if you run Flask applications with Prometheus monitoring infrastructure already in place and need straightforward request-level metrics. The low install friction and permissive license make adoption easy. However, the aging maintenance status (521 days since last release) means you should verify compatibility with your Flask and Python versions before committing to production use."},"id":"prometheus-flask-exporter","links":{"html":"https://skillfed.io/packages/prometheus-flask-exporter","md":"https://skillfed.io/packages/prometheus-flask-exporter.md","pypi":"https://pypi.org/project/prometheus-flask-exporter/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-03-11","license_spdx":null,"license_treatment":"permissive","name":"prometheus-flask-exporter","python_support":"unspecified","summary":"Prometheus metrics exporter for Flask"},"popularity":{"monthly_downloads":3229514,"position":2692,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.23.2"}
