FastAPI Observability 52,21352,213
4/15/2022
5/11/2025
4
DockerWeb Servers
>=12.0.0
PrometheusLoki
Telemetry FastAPI application with three pillars of observability on Grafana:
- Traces with Tempo and OpenTelemetry Python SDK
- Metrics with Prometheus and Prometheus Python Client
- 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
Used Metrics 2020
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