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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starlette-prometheus-0.6.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.0.0-1035-azure

File hashes

Hashes for starlette-prometheus-0.6.0.tar.gz
Algorithm Hash digest
SHA256 88e8c143f8d557b3a9c8885a1fd9ce649ce16e8453aac537f8551409aac92f4a
MD5 6f0ad1c4bd6949ecff45c6268a12b70f
BLAKE2b-256 b7c53da1bb31738441bde7fbce21403d27436a0924b97276f7d860456e18e313

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for starlette_prometheus-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc3ab5bf2e22c49d6ec55f2e81192bfbd316d6353187cc2c92ea49f04e41fc25
MD5 8029d1f3e84ceac2e45c169a4cb7c91e
BLAKE2b-256 bfc2dd8d6a4beca82f66535e24a8d5ade8c836d04fd9ee20ad3153d968d569b7

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