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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97bcc80c996cc04778a9c0db89e7bb8dd7646116646ba513429877441cc95a42 |
|
MD5 | 934f940eedad94d2214347758c51f6c1 |
|
BLAKE2b-256 | 075dc708b100bdccd6d1284a16d33326211a665e890402381789c01d846d7f6d |
Close
Hashes for bareASGI_prometheus-4.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1069e85660232a1ed6231a6fc916bd7b6b94afc8baef9fe26d07b27649d3591c |
|
MD5 | 01b3da15714d8955f7e4ffc34ad7a333 |
|
BLAKE2b-256 | 4cf4cb45159686033e6e0dfaa954b153f241f1060be2fadaaef7dcb88034b8a8 |