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
bareASGI-prometheus-3.6.0.tar.gz 7.5 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

4.2.0

2 release files

4.1.0

2 release files

4.0.0

2 release files

3.7.0

2 release files

3.6.1

2 release files

This release

3.6.0 This release

2 release files

3.5.0

2 release files

3.4.0

2 release files

3.3.0

2 release files

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