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>
This commit is contained in:
Erich Blume 2026-02-12 18:39:47 -08:00
commit 1a2e512b4b
5 changed files with 7 additions and 4 deletions

View file

@ -0,0 +1 @@
Fix cache hit rate panels on APM and Fly.io dashboards showing blank/red or misleading 100% for low-traffic static sites.