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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a29dd107f29991e64857418345d3c63d723129e666f97ed4ae28628406962a |
|
MD5 | 357f75d036fd5e220653dcb98f9fe72f |
|
BLAKE2b-256 | 989bbfcde64dde6a6497cd29f07b5e008af61bc143b919e0d0fe50dde6772c86 |
Close
Hashes for bareASGI_prometheus-3.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb0d5fee114e2829acde17dc5041008c0a7b8be07140b202d6a28a4cee28ebc7 |
|
MD5 | 087ceea97b662401cb4652c5bcb2f759 |
|
BLAKE2b-256 | 9cbf6248522be4cc25ca5943cfebb5d4cc45a4cb1d47be560f991d20cd399b34 |