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

Uploaded Source

Built Distribution

aiohttp_openmetrics-0.0.12-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiohttp-openmetrics-0.0.12.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for aiohttp-openmetrics-0.0.12.tar.gz
Algorithm Hash digest
SHA256 fd946781c325ae80954ef225fb7d03478488f0bb129d3a2fbb383761db968160
MD5 4eb6ae51c1067b2edfd611b8463a4004
BLAKE2b-256 6a3091f9b75b43a69c56f245e1dffd15178f2003d6c0b144e7ed38168cc1fa88

See more details on using hashes here.

File details

Details for the file aiohttp_openmetrics-0.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for aiohttp_openmetrics-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 6e0d117d60ee31ade98bb3eeab896611abc5bf281949b1d2966e9d8eb48c640f
MD5 2d42b6a92b388fe39e67eca4f9bbc5e3
BLAKE2b-256 eda6122d8f46413e250e49672aa09e0b9e82667e26ba41fc02a68c31245cbf2d

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