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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcae5867299dab12f915a8d2699a68c9d185b8f6c276f84f75204420f867dbd3 |
|
MD5 | d17833b4fafcba3cf84afca489bd7ead |
|
BLAKE2b-256 | 62b1fef1d3cbf6f82aa28754439d4610dba7aa5bdda87e760e03d9baef127442 |
Close
Hashes for bareASGI_prometheus-4.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25120754569a42f186eaf7d59d1369738afdcea0abca38a4937c536971b807c6 |
|
MD5 | 330a65c84e3f9132620f6680a4fe6a5b |
|
BLAKE2b-256 | f8150016db5324af3f6ebb41f43ec9d624a0c8cd5261e52b2f0b497b11e3d77c |