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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 467744922231645fa4400d0ce5199b3d854e4fcada864b881ff4cc38b5901827 |
|
MD5 | 03931e0b00dda2940aa2ac5cdfea451e |
|
BLAKE2b-256 | 9b641f4ef117b2c577ad363702bb38717f961d9458af27f04be16b2abfa0ad65 |
Close
Hashes for aiohttp_openmetrics-0.0.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d0acb6b7e7c2e9efb9d25140fac7f1511ab4864ad7aed5c721c68887cc2b83b |
|
MD5 | b258631a21de0c3f36bd514a5c478fc0 |
|
BLAKE2b-256 | 504ed9f4bd72afc868cef32bca14165d1012097574a741a9c4de248173e95cda |