OpenMetrics provider for aiohttp
Project description
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.
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 aiohttp-openmetrics-0.0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e372b6ba8f17a0e27792282ee26ed1a69791aa0e33474fa7b6a162ca0d7c655 |
|
MD5 | 52443b51b1ab45549d0f7c4425102d86 |
|
BLAKE2b-256 | 863cc8980bca898df763835dcb01ddbb41447407fb8aeb523e2563ea241db435 |
Close
Hashes for aiohttp_openmetrics-0.0.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89dbe654d61a4feb4ef183d6c4d8fed6239a8db40f604e3fa124243909aa481a |
|
MD5 | f4d067775b49e3a1837b722245a6f132 |
|
BLAKE2b-256 | 8706b85a3940ced4b19be3cfb63abe6422f46e5efbc1c0a2d779e3a9a1d8326b |