This content originally appeared on DEV Community and was authored by Adam Gardner
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
This content originally appeared on DEV Community and was authored by Adam Gardner

Adam Gardner | Sciencx (2025-01-19T22:57:14+00:00) [HANDS ON] Instrument Python FastAPI with Prometheus Metrics. Retrieved from https://www.scien.cx/2025/01/19/hands-on-instrument-python-fastapi-with-prometheus-metrics/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.