Skip to content

tools: add per-scrape/averaging window control for histogram metrics - #520

Merged
afrind merged 1 commit into
mainfrom
dashboard-avg-window
Jul 27, 2026
Merged

tools: add per-scrape/averaging window control for histogram metrics#520
afrind merged 1 commit into
mainfrom
dashboard-avg-window

Conversation

@afrind

@afrind afrind commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Histogram-derived metrics (evb loop busy, object ACK latency, client latency) now compute p99/p50/mean over the per-scrape counter delta by default, with a new "avg" dropdown to average over a 10s/30s/1m/5m span instead. histWindowStats() diffs against the previous scrape when the span is 0, else against the oldest snapshot within the span, and returns an empty stat on the first scrape when no delta exists yet.


This change is Reviewable

Histogram-derived metrics (evb loop busy, object ACK latency, client
latency) now compute p99/p50/mean over the per-scrape counter delta by
default, with a new "avg" dropdown to average over a 10s/30s/1m/5m span
instead. histWindowStats() diffs against the previous scrape when the
span is 0, else against the oldest snapshot within the span, and returns
an empty stat on the first scrape when no delta exists yet.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@gmarzot gmarzot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmarzot reviewed 1 file and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on afrind).

@afrind
afrind merged commit efa2da7 into main Jul 27, 2026
16 checks passed
@afrind
afrind deleted the dashboard-avg-window branch July 27, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants