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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more