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
Built Distribution
File details
Details for the file starlette-prometheus-0.6.0.tar.gz
.
File metadata
- Download URL: starlette-prometheus-0.6.0.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.0.0-1035-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e8c143f8d557b3a9c8885a1fd9ce649ce16e8453aac537f8551409aac92f4a |
|
MD5 | 6f0ad1c4bd6949ecff45c6268a12b70f |
|
BLAKE2b-256 | b7c53da1bb31738441bde7fbce21403d27436a0924b97276f7d860456e18e313 |
File details
Details for the file starlette_prometheus-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: starlette_prometheus-0.6.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.0.0-1035-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc3ab5bf2e22c49d6ec55f2e81192bfbd316d6353187cc2c92ea49f04e41fc25 |
|
MD5 | 8029d1f3e84ceac2e45c169a4cb7c91e |
|
BLAKE2b-256 | bfc2dd8d6a4beca82f66535e24a8d5ade8c836d04fd9ee20ad3153d968d569b7 |