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](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


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.2.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file aiohttp-openmetrics-0.0.2.tar.gz.

File metadata

  • Download URL: aiohttp-openmetrics-0.0.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.9

File hashes

Hashes for aiohttp-openmetrics-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1a16089d7481396ceec0d179b73533b809f3d9c81cbb8982461c1706263d83bc
MD5 6ddd1940caf25521c3cb83d20b247eeb
BLAKE2b-256 adcb23029dee7cae7283a6128e5516b119f6527fb47f2c6a10b20d8b228543fa

See more details on using hashes here.

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