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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bareASGI-prometheus-4.2.0.tar.gz.
File metadata
- Download URL: bareASGI-prometheus-4.2.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.10 Darwin/21.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b579365d0244101b42f71b9bc73b82e68744e2a0561cb11c9ceca6c7ea8caa08
|
|
| MD5 |
0c1188f306ac1cb033d7e83e634bfc88
|
|
| BLAKE2b-256 |
5a86a325c414d8df6e242f5750e3994047d9914b9964c5e0f81789c6afe65e72
|
File details
Details for the file bareASGI_prometheus-4.2.0-py3-none-any.whl.
File metadata
- Download URL: bareASGI_prometheus-4.2.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.10 Darwin/21.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1657f0b91c50ddfb9eb2fa6f9e1241d80af666afba8b04de0a317fe0d98cba1c
|
|
| MD5 |
16ea69ca19242418769da9ee74bd06f3
|
|
| BLAKE2b-256 |
740aee2fc53a5d1f467f0f323fbf34e15f00421c07b40b5a6be6a29793484131
|