metrics: the tiles read over the selected range - #317
Merged
Conversation
The scalar request carries the range the charts are on, and the requests tile is captioned by the window the proxy says it read over (MoonBase#1507), not a fixed five minutes. Older proxies keep their old caption. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NvyU4MCzgsmRNa33yW1YNM
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
muchq | 21297b6 | Commit Preview URL Branch Preview URL |
Sep 07 2026, 07:22 PM |
Options read "last 1d" so the one control the reader already uses names the window every chart and tile is over; Active, a gauge, is captioned as the exception. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NvyU4MCzgsmRNa33yW1YNM
While a range change is still out, the old number keeps its old caption; the tiles request is checked to name view and range together. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NvyU4MCzgsmRNa33yW1YNM
At 7d every tile is a week-long instant query (MoonBase#1507), and a page of them every thirty seconds is the load this dashboard adds to Prometheus; a week's count does not move in half a minute. Shorter ranges stay at thirty seconds. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NvyU4MCzgsmRNa33yW1YNM
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.
Client half of muchq/MoonBase#1507. The scalar request carries
range=alongsideview=, so the tiles read over the same span as the charts under them, and the requests tile is captioned by thewindowthe proxy echoes (Req (1d),Req (7d)) rather than a fixedReq (5m). A proxy that echoes a view but no window keepsReq (5m); one older than both keepsTotal.success_count_5m/failure_count_5mfollow the proxy's rename tosuccess_count/failure_count; nothing rendered them.The span is said once for the whole page, on the control the reader already uses: the range options read
last 30m,last 1d,last 7d. Every chart and, from a proxy that takes a range, every tile is over it; the one that is not, the Active gauge, is captionedActive (now).At 7d every tile is a week-long instant query, and a page of them every thirty seconds is the one load this dashboard adds to Prometheus, so a week refetches every five minutes; a week's count does not move in half a minute. Shorter ranges stay at thirty seconds.
Tests: the range on the tiles request, on the same request that names the view; the caption following the echoed window across a range change, and staying on the old number while the new answer is out; the two older captions unchanged; the select and the gauge saying their spans; a week not refetched at thirty seconds and refetched at five minutes.
504 tests, lint, typecheck and build clean.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NvyU4MCzgsmRNa33yW1YNM