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)
Metadata
Release files for bareasgi-prometheus 4.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bareASGI-prometheus-4.2.0.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bareASGI_prometheus-4.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / bareASGI-prometheus-4.2.0.tar.gz
| Download URL | bareASGI-prometheus-4.2.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b579365d0244101b42f71b9bc73b82e68744e2a0561cb11c9ceca6c7ea8caa08
|
|
BLAKE2b-256 checksum How to use checksums |
5a86a325c414d8df6e242f5750e3994047d9914b9964c5e0f81789c6afe65e72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.10 Darwin/21.2.0
|
Release files / bareASGI_prometheus-4.2.0-py3-none-any.whl
| Download URL | bareASGI_prometheus-4.2.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1657f0b91c50ddfb9eb2fa6f9e1241d80af666afba8b04de0a317fe0d98cba1c
|
|
BLAKE2b-256 checksum How to use checksums |
740aee2fc53a5d1f467f0f323fbf34e15f00421c07b40b5a6be6a29793484131
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.10 Darwin/21.2.0
|