DEV Community

Adam Gardner
Adam Gardner

Posted on

[HANDS ON] Instrument Python FastAPI with Prometheus Metrics

In this 5min hands-on video I explain how to take a Python FastAPI application and instrument it to make it “Prometheus enabled”.

The app will begin emitting metrics to the standard /metrics endpoint that Prometheus (or an OpenTelemetry collector) can scrape.

Git Repo for hands-on code: https://github.com/agardnerIT/fastapi-plus-prometheus

Top comments (0)