Skip to main content

Prometheus metrics for bareASGI

Project description

bareASGI-prometheus

Prometheus metrics for bareASGI (read the docs).

Installation

Install from the pie store

$ pip install bareASGI-prometheus

Usage

The middleware can either be configured manually or with a helper.

Manual Configuration

from bareasgi import Application
from bareasgi_prometheus import PrometheusMiddleware, prometheus_view

...

prometheus_middleware = PrometheusMiddleware()
app = Application(middlewares=[prometheus_middleware])
app.http_router.add({'GET'}, '/metrics', prometheus_view)

Helper Configuration

from bareasgi import Application
from bareasgi_prometheus import add_prometheus_middleware

...

app = Application()
add_prometheus_middleware(app)

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

bareASGI-prometheus-4.2.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

bareASGI_prometheus-4.2.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file bareASGI-prometheus-4.2.0.tar.gz.

File metadata

  • Download URL: bareASGI-prometheus-4.2.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.10 Darwin/21.2.0

File hashes

Hashes for bareASGI-prometheus-4.2.0.tar.gz
Algorithm Hash digest
SHA256 b579365d0244101b42f71b9bc73b82e68744e2a0561cb11c9ceca6c7ea8caa08
MD5 0c1188f306ac1cb033d7e83e634bfc88
BLAKE2b-256 5a86a325c414d8df6e242f5750e3994047d9914b9964c5e0f81789c6afe65e72

See more details on using hashes here.

File details

Details for the file bareASGI_prometheus-4.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bareASGI_prometheus-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1657f0b91c50ddfb9eb2fa6f9e1241d80af666afba8b04de0a317fe0d98cba1c
MD5 16ea69ca19242418769da9ee74bd06f3
BLAKE2b-256 740aee2fc53a5d1f467f0f323fbf34e15f00421c07b40b5a6be6a29793484131

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