CDN Monitoring and Observability: Metrics That Matter

· James Thornton · 4 min read

Why CDN Observability Matters

A CDN sits between your users and your infrastructure. When it misbehaves — stale content, elevated latency, cache misses — users experience the impact before your origin servers notice anything wrong. Effective CDN monitoring requires tracking edge-specific metrics that traditional APM tools miss.

Performance Comparison: Edge vs Origin Processing
Metric Edge Processing Origin Processing Improvement
Latency (p50)8–15 ms120–300 ms15–20x faster
Cache Hit Ratio85–95%N/AReduces origin load
TLS Handshake1–5 ms (nearby PoP)50–150 ms10–30x faster
Bandwidth Cost$0.01–0.04/GB$0.05–0.12/GB3–5x cheaper
Availability99.99% (multi-PoP)99.9% (single DC)10x fewer outages

Key CDN Metrics

Performance Metrics

MetricWhat It MeasuresTarget
TTFB (edge)Time from request to first byte at edge< 50ms (cache hit)
TTFB (origin)Time for CDN to fetch from origin< 500ms
Response time (P50/P95/P99)Full response delivery timeP99 < 200ms
ThroughputBytes/second deliveredBaseline + capacity

Cache Metrics

Error Metrics

Alerting Strategy

# Critical (PagerDuty/immediate)
cache_hit_ratio < 50% for 5 minutes
error_rate_5xx > 1% for 3 minutes
origin_latency_p99 > 2000ms for 5 minutes

# Warning (Slack/email)
cache_hit_ratio < 80% for 15 minutes
error_rate_5xx > 0.5% for 5 minutes
bandwidth_spike > 3x baseline

CDN Provider Analytics

Third-Party Monitoring

CDN provider analytics show what happened at the edge. Third-party monitoring shows what users actually experienced:

Request Lifecycle — How content moves through the CDNRequest Lifecycle — How content moves through the CDN CDN Request Flow — From Browser to Edge CDN Request Lifecycle Step 1 DNS Lookup Step 2 TCP Connect Step 3 TLS Handshake Step 4 Edge Server Step 5 Cache Check Step 6 Response Cache HIT → 5ms response Cache MISS → Fetch origin 0ms ~50ms (cache hit) ~200ms (cache miss)
Figure 2: Request Lifecycle — How content moves through the CDN

Dashboard Design

A CDN operations dashboard should show at a glance: global map of edge latency by region, cache hit ratio trend (last 24 hours), origin health and error rates, bandwidth utilization vs. capacity, top URLs by request volume and cache misses.

External References

References & Standards: W3C Web Performance · OWASP CDN Security