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:
parent
9717863f65
commit
1a2e512b4b
5 changed files with 7 additions and 4 deletions
1
docs/changelog.d/fix-cache-hit-rate-dashboards.bugfix.md
Normal file
1
docs/changelog.d/fix-cache-hit-rate-dashboards.bugfix.md
Normal 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue