~/talk

Inside a PromQL Query: Understanding the Mechanics

Talkat PromCon EU 2024 · 2024-09-11..09-12· [observability]
slides:none on file

PromQL parses queries into an AST and evaluates by AST walking, not by a planner, so execution follows the written order; range queries ask Prometheus for evenly spaced samples and functions like rate use a sliding-window fetch that streams points into the function rather than loading all history first. Storage uses a postings index of 64-bit series IDs and label maps. About 75 functions exist, ~1/3 work on instant vectors; aggregations now precompute group keys once, while joins/operators remain the most expensive per-point work.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30The Big Picture
  3. 2:32What is PromQL
  4. 5:33Series Index
  5. 6:59Series Label
  6. 7:52Selectors
  7. 8:30Query Translation
  8. 9:11Instant and Range Queries
  9. 9:49Range Queries
  10. 12:03Functions
  11. 14:23Range Vector
  12. 17:37Summing
  13. 22:13Join
  14. 25:20Final Results
~/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.