Skip to content
StackDecode
System Design
10. API Design and ManagementAnimated

API Observability

Seeing how the API behaves.

The idea

Metrics, logs and traces show latency, errors and usage per endpoint and client.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

AppsCollectorMetrics (Promet…Logs (Loki)Traces (Tempo)Dashboards
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Apps emit metrics, logs and traces.

step:
1/4
at:
Apps
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Emit metrics per endpoint
  2. 2Log requests with ids
  3. 3Trace across services
  4. 4Alert on error rate and latency

Where it is used

Operating APIs.

Watch out for

High-cardinality labels can overload the metrics system.

Related