Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_code-range-queries-on-time-series

Range Queries on Time-Series (Rollups, Downsampling & Sparse Tables)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Range Queries on Time-Series (Rollups, Downsampling & Sparse Tables) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_code-range-queries-on-time-series/opengraph-image)](https://archos.sageideas.dev/d/dgm_code-range-queries-on-time-series)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_code-range-queries-on-time-series)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_code-range-queries-on-time-series" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Range Queries on Time-Series (Rollups, Downsampling & Sparse Tables) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Dashboard / PromQL"]
  n1_1["Resolution Router"]
  n2a_2[("Hot Raw Chunks")]
  n2b_3[("Downsampled Rollups")]
  n3_4["Aligned Series Output"]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Pick tier · Planner"| n1_1
  n1_1 -->|"2a. Scan raw · Chunk"| n2a_2
  n1_1 -->|"2b. Scan · Rollup"| n2b_3
  n2a_2 -->|"3a. Emit pts · JSON"| n3_4
  n2b_3 -->|"3b. Merge · RAM"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Dashboard / PromQLSTATELESS
    Range [t_start, t_end]
  • Resolution RouterSTATELESS
    Picks raw vs 5m vs 1h rollup
  • Hot Raw ChunksSTATEFUL
    Gorilla compressed 15s samples
  • Downsampled RollupsSTATEFUL
    Pre-agg min/max/sum/count/HLL
  • Aligned Series OutputSTATELESS
    Sub-100ms Grafana time window
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Dashboard / PromQL → Resolution Router (Pick tier)[Planner]
  2. Resolution Router → Hot Raw Chunks (Scan raw)[Chunk]
  3. Resolution Router → Downsampled Rollups (Scan)[Rollup]
  4. Hot Raw Chunks → Aligned Series Output (Emit pts)[JSON]
  5. Downsampled Rollups → Aligned Series Output (Merge)[RAM]
  6. Aligned Series Output → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →