Starlette Prometheus
⚠️ This repository is a fork of the original starlette_prometheus middleware, using upgraded dependencies.
Introduction
Prometheus integration for Starlette.
Requirements
- Python 3.6+
- Starlette 0.9+
Installation
$ pip install starlette-prometheus-middleware
Usage
A complete example that exposes prometheus metrics endpoint under /metrics/ path.
from starlette.applications import Starlette
from starlette_prometheus import metrics, PrometheusMiddleware
app = Starlette()
app.add_middleware(PrometheusMiddleware)
app.add_route("/metrics/", metrics)
Metrics for paths that do not match any Starlette route can be filtered by passing
filter_unhandled_paths=True argument to add_middleware method.
Contributing
This project is absolutely open to contributions so if you have a nice idea, create an issue to let the community discuss it.
Metadata
Release files for starlette-prometheus-middleware 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| starlette-prometheus-middleware-0.9.0.tar.gz | 15.7 kB | Without provenance | Details for starlette-prometheus-middleware-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| starlette_prometheus_middleware-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for starlette_prometheus_middleware-0.9.0-py3-none-any.whl |
Total release size: 31.9 kB
Release files / starlette-prometheus-middleware-0.9.0.tar.gz
| Download URL | starlette-prometheus-middleware-0.9.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c662e19b6c03b18f449ad5a3958406a9730368c6b7bae20fec13f1520046b398
|
|
BLAKE2b-256 checksum How to use checksums |
f5f1648bd46a49240125b809aac0c2fee231c6364b7f0d3cd210f0232acd33c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.7 Linux/5.4.0-1036-azure
|
Release files / starlette_prometheus_middleware-0.9.0-py3-none-any.whl
| Download URL | starlette_prometheus_middleware-0.9.0-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4dfe23bfd6696c391c4326221f5ef8e6d2ac07b235b9fbaf6df8d86cf9261ea4
|
|
BLAKE2b-256 checksum How to use checksums |
d7fde7708809dfce036bdec0481ed44094366be312cc5ae3984cab04c4249151
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.7 Linux/5.4.0-1036-azure
|
Security for starlette-prometheus-middleware 0.9.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.