How the Observability Stack Architecture Works
mainThe stack follows a standard OpenTelemetry pipeline to ingest, store, and visualize Claude Code data:
- Claude Code: Generates telemetry data.
- OpenTelemetry Collector: Receives metrics and logs via gRPC (port 4317) or HTTP (port 4318).
- Storage Layer:
- Prometheus: Stores time-series metrics.
- Loki: Aggregates and stores events and logs.
- Grafana: Provides the visualization layer for querying both Prometheus and Loki to create dashboards.
Claude Code → OpenTelemetry Collector → Prometheus (metrics) + Loki (events/logs)
↓
Grafana (visualization & analysis)