Skip to main content

Prometheus metrics for bareASGI

Project description

bareASGI-prometheus

Prometheus metrics for bareASGI

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

Uploaded Source

Built Distribution

bareASGI_prometheus-3.6.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bareASGI-prometheus-3.6.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.1 Linux/4.10.0-33-generic

File hashes

Hashes for bareASGI-prometheus-3.6.0.tar.gz
Algorithm Hash digest
SHA256 c1a29dd107f29991e64857418345d3c63d723129e666f97ed4ae28628406962a
MD5 357f75d036fd5e220653dcb98f9fe72f
BLAKE2b-256 989bbfcde64dde6a6497cd29f07b5e008af61bc143b919e0d0fe50dde6772c86

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for bareASGI_prometheus-3.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb0d5fee114e2829acde17dc5041008c0a7b8be07140b202d6a28a4cee28ebc7
MD5 087ceea97b662401cb4652c5bcb2f759
BLAKE2b-256 9cbf6248522be4cc25ca5943cfebb5d4cc45a4cb1d47be560f991d20cd399b34

See more details on using hashes here.

Provenance

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