Prometheus integration for Starlette
Project description
Starlette Prometheus
Introduction
Prometheus integration for Starlette.
Requirements
- Python 3.6+
- Starlette 0.9+
Installation
$ pip install starlette-prometheus
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)
Contributing
This project is absolutely open to contributions so if you have a nice idea, create an issue to let the community discuss it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
starlette-prometheus-0.5.0.tar.gz
(15.4 kB
view hashes)
Built Distribution
Close
Hashes for starlette-prometheus-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45159fcea625a251780ffc80d959bf227d11789130e23344d173ed48e46d3e32 |
|
MD5 | 4b34878f4b58449c85a06e1c922f8c4b |
|
BLAKE2b-256 | dda204c6740127aec3140cd8789cbfa59e0c75fc3873d58e941375facaedc854 |
Close
Hashes for starlette_prometheus-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 121a8a6ba6e8d8287b278173a308e9f86a41e90433aaf3b81105987726960eb2 |
|
MD5 | d65811f40aeb0f78de587be31854acdf |
|
BLAKE2b-256 | 3fe99f0fe39e18dbdb91f30d367bd7a00a1c0f401e85ead5796617062be8a9a0 |