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.2.0.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for starlette-prometheus-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 693e3ac8c6f292a66a9acb2d008dd44db991f33fbfd896f4cabc1583d3e1e014 |
|
MD5 | 3ac006d6ef128565b12d7f3296160963 |
|
BLAKE2b-256 | 20b65d0edffa820f3c1d6b01f1a19d01277a5d14997ed205779806ee5894b80d |
Close
Hashes for starlette_prometheus-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b16ac374fb6ac0dcb7240f2fe340b3405bde87d0578668be60e2bd6dc6b1d0 |
|
MD5 | a5200fe4fa10e3f8c07d672906072c0b |
|
BLAKE2b-256 | 2a2342dbff4d0f0a0d745f80dff428529cc1c97fa95d7d2d2dd7777efd22cb3c |