~/talk

Stream vs. Batch: Leveraging M3 and Thanos for Real-Time Aggregation

slides:none on file

Compares two concrete implementations: M3 uses streaming roll‑up rules on the ingest path to reconstitute aggregated metrics as new counters/gauges and serve them immediately, reducing an example dashboard from 51,000 → 230 series and query time from >20s → <1s, but adds operational complexity and loses arbitrary PromQL. Thanos uses Prometheus sidecar, ruler and compactor to run recording rules and write aggregates to object storage (2h blocks), keeping full PromQL support but incurring re-query/read/write overhead and slower, more resource‑heavy batches; notes a viable hybrid with M3 coordinator + Thanos.

AI-written summary · about

  1. 0:00Intro
  2. 1:08High Cardinality Metrics Example
  3. 2:02Querying without aggregation
  4. 5:18Prometheus Recording Rules
  5. 6:18Open source metrics solutions
  6. 6:55What is M3?
  7. 8:20Streaming aggregation with M3
  8. 10:07Pros and cons of streaming aggregation
  9. 11:31What is Thanos?
  10. 13:29Batch aggregation with Thanos
  11. 15:13Pros and cons of batch aggregation
  12. 17:05Recap - How to choose?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.