Prometheus integration for Starlette
Project description
Starlette Prometheus
- Version: 0.1.1
- 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.1.1.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for starlette-prometheus-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8f126c93a06d9eac8bb8bb11bd2f5d00b40c226ddd547acfdbf5a9a9c740e94 |
|
MD5 | 27ffbe491c6b9382adf9e53717e788a5 |
|
BLAKE2b-256 | eb50005dfce0bdd5ad1efea2c75da1db952e5b18cdf17e990e06084db3ee7903 |
Close
Hashes for starlette_prometheus-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09aa1894047da0a82f23062e81c4dcbcb9ea1aca7d860d17f998dfdfce800754 |
|
MD5 | 26b8a7173db908799dc3824ff3820671 |
|
BLAKE2b-256 | 51edccbbd8fa5cb2993c8881975759839a98a3a145d161c676bb0a10fbcd2af3 |