Fix cache hit rate on APM and Fly.io dashboards #177

Merged
eblume merged 1 commit from fix/cache-hit-rate-dashboards into main 2026-02-12 18:40:48 -08:00

1 commit

Author SHA1 Message Date
1a2e512b4b Fix cache hit rate on APM and Fly.io dashboards
The cache_requests_total metric used match_all=true, counting health
check requests (no cache_status) alongside real traffic. Dashboard
queries used rate()[5m] which produced blank or 100% on low-traffic
static sites. Switch to increase()[$__range] for meaningful aggregation
and add null/NaN value mapping to show "No traffic" instead of red.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 18:39:47 -08:00