Prometheus integration for Starlette
Project description
Starlette Prometheus
- Version: 0.1.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.1.0.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for starlette-prometheus-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb582408ccfa7a412f1612e3124d6feade5085eb93c4efffe0c21cac001febfd |
|
MD5 | cbb702fc7cecfd8bcc3655fe7c745221 |
|
BLAKE2b-256 | 2511bb1e9cc8108c3bbe5edcb9e0499c94eac5916b54a04481de8fda0fc15cba |
Close
Hashes for starlette_prometheus-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1c36cc027dad6b09da08c49747a9a101f179def4081e2569c2dc7d50467798c |
|
MD5 | 655c4612b73d334458d6d9ad080e0c5a |
|
BLAKE2b-256 | 139d033b9817b5bd0eb9ae61b22a40a99ea50f9ab6df1ba5f67e67b93d893eca |