Leveraging the edge for observability
summary
Shows how to turn a caching proxy/CDN into the central observability layer by exporting logs, metrics and traces from varnishncsa and varnishlog into a standardized pipeline. Demonstrates a JSON output option (varnishlog JSON), centralizes metrics to Prometheus and logs to Loki/Grafana, and exports traces via OTLP to Prometheus, Loki and Tempo. Live example uses a PHP dice-roll app where dashboards report 342 requests with 331 hits, 9 misses and 2 bypasses, and traces reveal 415ms total latency with ~336ms spent calling an external RNG.
AI-written summary · about
chapters (17)
- 0:00Introduction and welcome
- 1:56What is the edge
- 3:01Observability defined
- 4:24About Varnish Software
- 6:34Logs as observability signals
- 9:23Varnishlog deep dive
- 12:12Reducing and filtering logs
- 13:14VSL queries for insights
- 15:00Metrics for bird's eye view
- 16:23Centralizing telemetry data
- 18:30OpenTelemetry introduction
- 20:57OpenTelemetry in practice
- 23:04Traces and distributed systems
- 26:14Custom application instrumentation
- 28:01Edge-level instrumentation
- 29:25Flexibility with OpenTelemetry
- 30:07Conclusion and thanks
