Repository navigation
cache metrics: route revalidation, origin duration, Cache-Control - #4386
Closed
larry-dalmeida wants to merge 5 commits into
Closed
larry-dalmeida wants to merge 5 commits into
larry-dalmeida wants to merge 5 commits into
Conversation
3 tasks done
larry-dalmeida
force-pushed
the
metrics-cde-origin-control
branch
from
October 26, 2026 13:25
696a8d3 to
bda674b
Compare
Add skipper_cache_lru_entries{route} and skipper_cache_lru_capacity_bytes gauges. ShardedByteLRU.Usage returns bytes and entry count together; Bytes delegates to it.
Signed-off-by: Larry D Almeida <hello@larrydalmeida.com>
larry-dalmeida
force-pushed
the
metrics-cde-origin-control
branch
from
October 26, 2026 14:36
bda674b to
4025aa0
Compare
larry-dalmeida
force-pushed
the
larry-almeida-zse-cache-timeouts-pr
branch
from
October 26, 2026 14:37
509147c to
7e48ec0
Compare
1 of 2 tasks
Count hit, stale, and miss outcomes per route ID and record the time from process start to the first cache hit. Signed-off-by: Larry D Almeida <hello@larrydalmeida.com>
- Route revalidation outcomes (started/success/failed/dropped) - Origin fetch duration by route and status class - Cache-Control directive tracking from origin responses These metrics instrument cache operations across routes and origin interactions. Signed-off-by: Larry D Almeida <hello@larrydalmeida.com>
Signed-off-by: Larry D Almeida <hello@larrydalmeida.com>
Signed-off-by: Larry D Almeida <hello@larrydalmeida.com>
larry-dalmeida
force-pushed
the
metrics-cde-origin-control
branch
from
October 27, 2026 07:50
78fb3ac to
f9a04f6
Compare
3 of 6 tasks
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Completes metrics with route revalidation outcomes, origin fetch duration, and Cache-Control directive tracking.
How to Verify
Shared setup
make verifystarts or reuses Minikube, the mock origin and the stack; runs the smoke and coalescing checks; and validates supported dashboard queries. It prints a report path and exits non-zero on failure. For outage evidence, runmake chaos SKIPPER_CHECKOUT=../skipper-pr-4387 NAME=origin-stale; it includes its own timed load. Requirements: Python 3.9+, Make, Bash, Git, curl, kubectl, Minikube, Docker and Go compatible with Skipper'sgo.mod. Free ports: 8080, 8081, 6379, 4318, 9091, 9999, 9911 (8089 for endless load). Dynamic URLs:.runtime/urls.txt; stop withmake stop.Validated on #4387 (
d767f636): smoke: 6,398 requests, 0 failures; origin-stale: 155 failed revalidations across 77 routes. Smoke metric checks: 42 PASS, 2 fault-only NOT EXERCISED, 0 FAIL.Focused tests
Expected: 12 focused tests pass; route-revalidation, origin-duration and bounded Cache-Control metrics emit samples. During
origin-stale, origin 5xx incrementsfailed(including cachederrorTTLresponses); legacycache.reval_errornow counts 5xx too and counts body-read failures once. Smoke alone does not exercise failures; see the shared outage report.Checklist
Rollback Plan
Revert this PR to restore previous metrics behavior.
References & Additional Context
Depends on #4384 and #4385. Completes the metrics stack with route revalidation, origin latency, and Cache-Control directive metrics.
E2E Evidence
Latest-chain verification: origin-stale report records 155 failed revalidations across 77 routes; smoke report has 0 failures. The stack run uses #4387, which includes this PR.