Skip to main content

Prometheus integration for Starlette

Project description

Starlette Prometheus

Build Status codecov PyPI version

  • Version: 0.1.0
  • Status: Production/Stable
  • Author: José Antonio Perdiguero López


Prometheus integration for Starlette.


  • Python 3.6+
  • Starlette 0.9+


$ pip install starlette-prometheus


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_route("/metrics/", metrics)


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

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
starlette_prometheus-0.1.0-py3-none-any.whl (40.1 kB) Copy SHA256 hash SHA256 Wheel py3
starlette-prometheus-0.1.0.tar.gz (15.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page