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)
Metadata
Release files for bareasgi-prometheus 3.6.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-3.6.0.tar.gz | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bareASGI_prometheus-3.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / bareASGI-prometheus-3.6.0.tar.gz
| Download URL | bareASGI-prometheus-3.6.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1a29dd107f29991e64857418345d3c63d723129e666f97ed4ae28628406962a
|
|
BLAKE2b-256 checksum How to use checksums |
989bbfcde64dde6a6497cd29f07b5e008af61bc143b919e0d0fe50dde6772c86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.7.1 Linux/4.10.0-33-generic
|
Release files / bareASGI_prometheus-3.6.0-py3-none-any.whl
| Download URL | bareASGI_prometheus-3.6.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb0d5fee114e2829acde17dc5041008c0a7b8be07140b202d6a28a4cee28ebc7
|
|
BLAKE2b-256 checksum How to use checksums |
9cbf6248522be4cc25ca5943cfebb5d4cc45a4cb1d47be560f991d20cd399b34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.7.1 Linux/4.10.0-33-generic
|