Skip to main content

Prometheus integration for Starlette

Project description

Starlette Prometheus

Build Status codecov Package Version PyPI Version


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

Download files

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

Files for starlette-prometheus, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size starlette_prometheus-0.6.0-py3-none-any.whl (15.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size starlette-prometheus-0.6.0.tar.gz (15.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page