Skip to content

WIP: Delivery dashboard on delivery table with weight#157

Draft
davidnuescheler wants to merge 5 commits intomainfrom
wip/delivery-table-weighted
Draft

WIP: Delivery dashboard on delivery table with weight#157
davidnuescheler wants to merge 5 commits intomainfrom
wip/delivery-table-weighted

Conversation

@davidnuescheler
Copy link
Copy Markdown
Contributor

Summary

Work in progress: base delivery.html on the ClickHouse delivery table instead of cdn_requests_v2, and scale all displayed counts using the weight column (sum(weight), sumIf(weight, …)). Includes time series, breakdowns, anomaly investigation queries, facet search, and shared helpers in js/query-aggregations.js. Sampling is disabled for this dashboard so weights are not double-scaled.

Testing Done

  • Not run in this environment (npm test / npm run lint pending).

Checklist

  • Tests pass (npm test)
  • Lint passes (npm run lint)
  • Documentation updated (if applicable)

Made with Cursor

- Point delivery dashboard at helix_logs_production.delivery
- Multiply counts via sum(weight) / sumIf(weight, ...) across breakdowns,
  time series, anomaly investigation, and facet search
- Add time-series-delivery.sql; disable SAMPLE and sample_hash dedup for
  pre-weighted rows
- Centralize aggregation helpers in query-aggregations.js

Made-with: Cursor
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 24, 2026

Preview deployment

Preview is live at: https://klickhaus.aemstatus.net/preview/pr-157/dashboard.html

Updated for commit 15c2ed2

- Add "Last 3 days" (3d) time range between 24h and 7d
- Replace client IP facet with cdn.originating_ip as "Originating IPs"
- Remove Cache Status, Accept, and Cache-Control (Req) facets
- Add Content Encoding and Surrogate Keys facets (delivery table)
- Hide Redirect Location, Content Encoding, and Surrogate Keys by default

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ix facet routing

- Add backend.html dashboard page for per-subsystem backend traffic analysis
- Add backend-main.js and time-series-backend.sql for weighted query support
- Fix canUseFacetTable() to skip cdn_facet_minutes for non-cdn_requests_v2 tables
- Fix bucketed facet filters (Content Length, Response Time) by adding evaluated
  multiIf expressions to the filter column allowlist
- Fix Content Encoding facet to show (empty) entry for unencoded responses
- Add RSO facet for helix.rso backend table column
- Link backend dashboard from main index page

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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