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](https://www.openmetrics.org/) protocol.
At the moment, this package is a thin wrapper around the prometheus_client package.
Example usage
Usage
from aiohttp import web
from aiohttp_openmetrics import metrics, metrics_middleware
app = web.Application()
app.middlewares.append(metrics_middlware)
app.router.add_route('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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2da1e84c27bb2e513857966e59d1b8eb88d6a9fcedd0611843fdd9b4f96e48 |
|
MD5 | 66f02b9d425817ab9573485907b78d78 |
|
BLAKE2b-256 | 9c849fd8c7845d138603d79b09af52c8fc8247aa7faf15c525a9d570438b9686 |