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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eb17472ef4a40bf9b5664e2ea82dd674df097ad36f0ed84f11281a770962413 |
|
MD5 | ebaeb6f933b804a1e7c1e8314df98071 |
|
BLAKE2b-256 | ccb4f17e0682c21c3b4b68ad8980a3f85b386990cf5e245cd7a3f1fa36f83eea |
Close
Hashes for bareASGI_prometheus-3.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5df1208e6041ff36ff55049064d59a8ad4f2758f6f9cdf904b535707021764e1 |
|
MD5 | 02468914f77011b98cdc326df34cf67b |
|
BLAKE2b-256 | 86ba0db39d27e1afef9e1a7011f73c98cab3d8f732fc3e7465f82cc240b4c7f7 |