~/lightning

Optimizing PromQL Queries

Lightningat PromCon EU 2024 · 2024-09-11..09-12· [developer-experience]
slides:none on file

Shows that dividing a metric filtered by instance by an unfiltered metric causes the engine to fetch hundreds or thousands of series only to keep one, wasting CPU and memory; manually copying the instance filter into both sides fixes latency. Implements automatic label-filter pushdown at parse time for aggregations and function calls and a runtime filter pruning for metadata joins (avoiding scanning 10 thousands stale pod info series). The optimization is implemented in prus and yields large resource and speed improvements.

AI-written summary · about

~/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.