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

Uploaded Source

File details

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

File metadata

  • Download URL: aiohttp-openmetrics-0.0.6.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for aiohttp-openmetrics-0.0.6.tar.gz
Algorithm Hash digest
SHA256 799264e4f2c1ea32f18597f220f156032cd41a5f1eb6bf2c2d60ab4d5f3de0d7
MD5 0a29fff4b1c16fb457438c2f28d45445
BLAKE2b-256 d872a57a8afecd72c2d00e3546af796b10013f8be3e5cf576695230f9e53df71

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