FastAPI Observability
52,213

Created 4/15/2022
Updated 5/11/2025
Revision 4
Categories
DockerWeb Servers
Grafana Version >=12.0.0
Datasources
PrometheusLoki

Telemetry FastAPI application with three pillars of observability on Grafana:

  1. Traces with Tempo and OpenTelemetry Python SDK
  2. Metrics with Prometheus and Prometheus Python Client
  3. Logs with Loki

Check more details on the GitHub repository: FastAPI with Observability.

There is also a Spring Boot version: Spring Boot with Observability.

Get Dashboard
Download
Copy to Clipboard
Source Grafana.com

Used Metrics 20

  • fastapi_requests_total

  • fastapi_requests_duration_seconds_sum

  • fastapi_requests_duration_seconds_count

  • fastapi_exceptions_total

  • fastapi_responses_total

  • fastapi_requests_duration_seconds_bucket

  • fastapi_requests_in_progress

  • pattern

  • date

  • type

  • logger

  • code

  • _

  • trace_id

  • span_id

  • service_name

  • msg

  • log_keyword

  • line_format

  • t