DEV Community

Adam Gardner
Adam Gardner

Posted on

1

[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)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay