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.2.1.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for starlette-prometheus-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 389af012e2dd27e7c0c7abfce88068ba901ffb9810139a938f8aeb97e77876fc |
|
MD5 | 5ad6c44c59b01e096e22af5d1890fe54 |
|
BLAKE2b-256 | 9050dd461859c4ddec6639d8dd3bffa5f998b65b552527ab7751182ef0d4e91e |
Close
Hashes for starlette_prometheus-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bb9a21605d469a19d01349b45e7ce2e0a9f1bf18c23a76e0677fa5f443f60f8 |
|
MD5 | 8b113c16cb8a52eca7f9e79057374423 |
|
BLAKE2b-256 | 7ae2c515af48a656d1c5e3b5cdf65b79efec94060ce2d4dd0c53f9ed750f6aae |