Skip to main content

Prometheus integration for Starlette

Project description

Starlette Prometheus

Build Status codecov Package Version PyPI Version

Introduction

Prometheus integration for Starlette.

Requirements

  • Python 3.6+
  • Starlette 0.9+

Installation

$ pip install starlette-prometheus

Usage

A complete example that exposes prometheus metrics endpoint under /metrics/ path.

from starlette.applications import Starlette
from starlette_prometheus import metrics, PrometheusMiddleware

app = Starlette()

app.add_middleware(PrometheusMiddleware)
app.add_route("/metrics/", metrics)

Contributing

This project is absolutely open to contributions so if you have a nice idea, create an issue to let the community discuss it.

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

starlette-prometheus-0.5.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

starlette_prometheus-0.5.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file starlette-prometheus-0.5.0.tar.gz.

File metadata

  • Download URL: starlette-prometheus-0.5.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.8.0 Darwin/18.7.0

File hashes

Hashes for starlette-prometheus-0.5.0.tar.gz
Algorithm Hash digest
SHA256 45159fcea625a251780ffc80d959bf227d11789130e23344d173ed48e46d3e32
MD5 4b34878f4b58449c85a06e1c922f8c4b
BLAKE2b-256 dda204c6740127aec3140cd8789cbfa59e0c75fc3873d58e941375facaedc854

See more details on using hashes here.

File details

Details for the file starlette_prometheus-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for starlette_prometheus-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 121a8a6ba6e8d8287b278173a308e9f86a41e90433aaf3b81105987726960eb2
MD5 d65811f40aeb0f78de587be31854acdf
BLAKE2b-256 3fe99f0fe39e18dbdb91f30d367bd7a00a1c0f401e85ead5796617062be8a9a0

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