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-3.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a91a3a9e9c52e281974cef3ca74bc8055190ec46091eddcf03f68754fbe20742 |
|
MD5 | ef86088a1c0c86f399d1fdc6e5470beb |
|
BLAKE2b-256 | e04d329e7bfb569b44135a8cc5d59d941d6d9b0431d72ed16c19d2f815447bdb |
Close
Hashes for bareASGI_prometheus-3.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b573f77a38f3d751d683fafa9df86c0798dd3c6f3692a08ac034850a41122f42 |
|
MD5 | 126a273405ba9d64f815d77148a84874 |
|
BLAKE2b-256 | 31ce5798b2e2b738f20d5924efd9116d5a1f91d20a77707247509b883c29f853 |