Skip to content

jelmer/aiohttp-openmetrics

Repository files navigation

aiohttp-openmetrics

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.

About

OpenMetrics endpoint provider for aiohttp

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages