"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
Close
Hashes for aiohttp-openmetrics-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2980022003cc3305684d4c0e0e6ec66c0dc68d86fc36299dfb6e153a1d47f3bf |
|
MD5 | 6567d499ed46b6e1fb9cf9e6dde2416b |
|
BLAKE2b-256 | aadf245a36a0bf3af79023b32869f0c465ad30264ca08fb7ce34b95e3f6bad8e |