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-4.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b579365d0244101b42f71b9bc73b82e68744e2a0561cb11c9ceca6c7ea8caa08 |
|
MD5 | 0c1188f306ac1cb033d7e83e634bfc88 |
|
BLAKE2b-256 | 5a86a325c414d8df6e242f5750e3994047d9914b9964c5e0f81789c6afe65e72 |
Close
Hashes for bareASGI_prometheus-4.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1657f0b91c50ddfb9eb2fa6f9e1241d80af666afba8b04de0a317fe0d98cba1c |
|
MD5 | 16ea69ca19242418769da9ee74bd06f3 |
|
BLAKE2b-256 | 740aee2fc53a5d1f467f0f323fbf34e15f00421c07b40b5a6be6a29793484131 |