Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiohttp-openmetrics-0.0.11.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

aiohttp_openmetrics-0.0.11-py2.py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page