Prometheus metrics for bareASGI
Project description
bareASGI-prometheus
Prometheus metrics for bareASGI
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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98a39d33febfa0086d95f8ce10c9a8a0a59e204a332a8596cead972154e77754 |
|
MD5 | cfa8c1c439bd1d3910beea677b3eb612 |
|
BLAKE2b-256 | 64dd52b1ab896d0fb2675aab7462fbab1b6f24bc820774cf9cdde083e463c751 |
Close
Hashes for bareASGI_prometheus-3.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93be959d6f044b5874e4c5b0ca5daa959d3164b35d0d21674c90dcaff7216702 |
|
MD5 | 8245971d9142417dc2138bf55f55fae1 |
|
BLAKE2b-256 | e9d9e14780525c2b9be8c799335262e9f3cea518c49b0195df5856e2e0c9883a |