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
[](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_5COMPONENT STACK (6)
- Dashboard / PromQLSTATELESSRange [t_start, t_end]
- Resolution RouterSTATELESSPicks raw vs 5m vs 1h rollup
- Hot Raw ChunksSTATEFULGorilla compressed 15s samples
- Downsampled RollupsSTATEFULPre-agg min/max/sum/count/HLL
- Aligned Series OutputSTATELESSSub-100ms Grafana time window
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Dashboard / PromQL → Resolution Router (Pick tier)[Planner]
- Resolution Router → Hot Raw Chunks (Scan raw)[Chunk]
- Resolution Router → Downsampled Rollups (Scan)[Rollup]
- Hot Raw Chunks → Aligned Series Output (Emit pts)[JSON]
- Downsampled Rollups → Aligned Series Output (Merge)[RAM]
- Aligned Series Output → Downstream & OTel (Emit /)[OTLP/API]