Prometheus integration for Starlette
Project description
Starlette Prometheus
- Version: 0.2.0
- Status: Production/Stable
- Author: José Antonio Perdiguero López
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.3.0.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for starlette-prometheus-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03011a27318f1f5760d2aadcaec8c346b8cf930e0fb398a5b9b5c6074619f3a7 |
|
MD5 | 342045cde7bf8ca2fcd4ada902f96db1 |
|
BLAKE2b-256 | f19e5f0fef5c3bc53701b7075cb86e8d85d647c3f985c6746d7666589948b15b |
Close
Hashes for starlette_prometheus-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61e4af8db24218801366a8704edfa026955d6eb53d79d59e36571c9c68a8be1b |
|
MD5 | 6360bd7ae4d51e54761c0eb49b2348fb |
|
BLAKE2b-256 | 6a6609144a6c3d933c2bfb9e628c432deb470c444d2d9df8c9fbb49109f1875f |