Skip to main content

fw-http-metrics

FastAPI middleware for collecting and exposing Prometheus metrics.

Installation

Add as a poetry dependency to your project:

poetry add fw-http-metrics

Usage

from fastapi import FastAPI
from fw_http_metrics import MetricsMiddleware, get_metrics

app = FastAPI()
app.add_middleware(MetricsMiddleware)
app.add_route("/metrics", get_metrics)

Development

Install the project using poetry and enable pre-commit:

poetry install
pre-commit install

License

MIT

Metadata

Release files for fw-http-metrics 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for fw-http-metrics 0.2.0
File Interpreter ABI Platform Actions
fw_http_metrics-0.2.0-py3-none-any.whl Python 3 none any Details for fw_http_metrics-0.2.0-py3-none-any.whl

Release files / fw_http_metrics-0.2.0-py3-none-any.whl

Download URL fw_http_metrics-0.2.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a37db4dfe182afa1c4547fb9558c07298836ca0fba61c031872d778cec681c29
BLAKE2b-256 checksum
How to use checksums
063dd595486c800a4aa02dc4311acced88866571261b9c8943be8334c16b3d3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.8 Linux/5.4.109+

Security for fw-http-metrics 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page