Prometheus metrics for bareASGI
Project description
bareASGI-prometheus
Prometheus metrics for bareASGI (read the docs).
Installation
Install from the pie store
$ pip install bareASGI-prometheus
Usage
The middleware can either be configured manually or with a helper.
Manual Configuration
from bareasgi import Application
from bareasgi_prometheus import PrometheusMiddleware, prometheus_view
...
prometheus_middleware = PrometheusMiddleware()
app = Application(middlewares=[prometheus_middleware])
app.http_router.add({'GET'}, '/metrics', prometheus_view)
Helper Configuration
from bareasgi import Application
from bareasgi_prometheus import add_prometheus_middleware
...
app = Application()
add_prometheus_middleware(app)
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
Close
Hashes for bareASGI-prometheus-3.6.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd65c3abdf040ac674768affd8210de7ca4fdcb798869ba6a61748f8d422f67e |
|
MD5 | ffcb4c7492e9581a0b1a158233dc51a2 |
|
BLAKE2b-256 | d81f9b68eda47b30c2c10c1cd1048e9121b32eabd6ca6eab85d2ac9b92252e04 |
Close
Hashes for bareASGI_prometheus-3.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab1f8c6bb6591df99c3ed1601ce15814ea13dd257d0057d85c1b3a4b3f9a9866 |
|
MD5 | e50a38b021b59c0585b0acbdc3b6e02e |
|
BLAKE2b-256 | ff53a8f37a310546cefe86125eef11dddfebd432acefa54a4e111d7ced1ea31a |