This project contains a simple middleware and /metrics route endpoint for aiohttp that allow easy implementation of the openmetrics protocol.
At the moment, this package is a thin wrapper around the prometheus_client package.
Example usage
from aiohttp import web
from aiohttp_openmetrics import metrics, metrics_middleware
app = web.Application()
app.middlewares.append(metrics_middlware)
app.router.add_get('/metrics', metrics)
web.run_app(app)
License
This package is licensed under the Apache v2 or later license.
Release files for aiohttp-openmetrics 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiohttp-openmetrics-0.0.12.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiohttp_openmetrics-0.0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / aiohttp-openmetrics-0.0.12.tar.gz
| Download URL | aiohttp-openmetrics-0.0.12.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd946781c325ae80954ef225fb7d03478488f0bb129d3a2fbb383761db968160
|
|
BLAKE2b-256 checksum How to use checksums |
6a3091f9b75b43a69c56f245e1dffd15178f2003d6c0b144e7ed38168cc1fa88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / aiohttp_openmetrics-0.0.12-py3-none-any.whl
| Download URL | aiohttp_openmetrics-0.0.12-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e0d117d60ee31ade98bb3eeab896611abc5bf281949b1d2966e9d8eb48c640f
|
|
BLAKE2b-256 checksum How to use checksums |
eda6122d8f46413e250e49672aa09e0b9e82667e26ba41fc02a68c31245cbf2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|