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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 188554923ca7fa241231967a74d9a68a6bdbb7eb7ebb1398bf64040e4fdd03e8 |
|
MD5 | d3131493f8093400177801f8360278d9 |
|
BLAKE2b-256 | afd8fa77e6f95a26a7413d3e626c55089ebd4bb6a390b74a1662934e7d44caa1 |
Close
Hashes for aiohttp_openmetrics-0.0.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a53ed19bcc775236d16fbdc26066f08ef603e6125cdd1ac3fb13c7e23cd902c |
|
MD5 | fc0cb52b4b47f71c0fe5acd68da03163 |
|
BLAKE2b-256 | 51f8bdeef4b42445ade2db7ef50cd464294da7b191265067623824f6b3835bed |