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.6.0.tar.gz
(15.4 kB
view hashes)
Built Distribution
Close
Hashes for starlette-prometheus-0.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e8c143f8d557b3a9c8885a1fd9ce649ce16e8453aac537f8551409aac92f4a |
|
MD5 | 6f0ad1c4bd6949ecff45c6268a12b70f |
|
BLAKE2b-256 | b7c53da1bb31738441bde7fbce21403d27436a0924b97276f7d860456e18e313 |
Close
Hashes for starlette_prometheus-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc3ab5bf2e22c49d6ec55f2e81192bfbd316d6353187cc2c92ea49f04e41fc25 |
|
MD5 | 8029d1f3e84ceac2e45c169a4cb7c91e |
|
BLAKE2b-256 | bfc2dd8d6a4beca82f66535e24a8d5ade8c836d04fd9ee20ad3153d968d569b7 |