Skip to main content

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)

Metadata

Release files for bareasgi-prometheus 3.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bareasgi-prometheus 3.6.0
File Size Uploaded Provenance Actions
bareASGI-prometheus-3.6.0.tar.gz 7.5 kB Without provenance Details for bareASGI-prometheus-3.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bareasgi-prometheus 3.6.0
File Interpreter ABI Platform Actions
bareASGI_prometheus-3.6.0-py3-none-any.whl Python 3 none any Details for bareASGI_prometheus-3.6.0-py3-none-any.whl

Total release size: 16.8 kB

Release files / bareASGI-prometheus-3.6.0.tar.gz

Download URL bareASGI-prometheus-3.6.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c1a29dd107f29991e64857418345d3c63d723129e666f97ed4ae28628406962a
BLAKE2b-256 checksum
How to use checksums
989bbfcde64dde6a6497cd29f07b5e008af61bc143b919e0d0fe50dde6772c86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.17 CPython/3.7.1 Linux/4.10.0-33-generic

Release files / bareASGI_prometheus-3.6.0-py3-none-any.whl

Download URL bareASGI_prometheus-3.6.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb0d5fee114e2829acde17dc5041008c0a7b8be07140b202d6a28a4cee28ebc7
BLAKE2b-256 checksum
How to use checksums
9cbf6248522be4cc25ca5943cfebb5d4cc45a4cb1d47be560f991d20cd399b34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.17 CPython/3.7.1 Linux/4.10.0-33-generic

Security for bareasgi-prometheus 3.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page