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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84f3ce52591cd84aa7fbd7d79f14d935e23948836d9aaf51c59807a4208d0b06 |
|
MD5 | 8f550f6c5448469efb57a9c72c12970b |
|
BLAKE2b-256 | 98c912725da2f412cde736da6365f1031863238fe4c107ec3f3d609320dd06b0 |