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

📊 Benchmarking Databases for Real-Time Analytics Applications

Benchmarking Timescale, Clickhouse, Postgres, MySQL, MongoDB, and DuckDB for real-time analytics. Introducing RTABench 🚀

Read full post →

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay