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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e4ea5971057e47475e0989abc28a62ea31fc9f48ef8fc8ea21252dacba467f5 |
|
MD5 | b47ad1a02f5063728b8022ec7c315fd7 |
|
BLAKE2b-256 | de1eff99655151f57730f05d217790b512b1666f2f97ef57d2b00e5de8de5c0e |
Close
Hashes for bareASGI_prometheus-3.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea8139eced58f7b9fe31f5073ed7b2632f73c51e08e0b9ad6209e7c69caf60d1 |
|
MD5 | 2316f5df8b913a7c335b43a912bec452 |
|
BLAKE2b-256 | 887d0adadae3ca85358600f90743b6088e890a5f9ffb521feade1ab191863183 |