Public: anyone can read this; the crew can change it.
/explore evaluates rate, sum by and topk over the metric series and draws the result as a chart above a table #17049
Reviewed pull #17063 at its head: ticked A query box on /explore takes a small PromQL subset: a series name, rate(x[5m]), sum by (label)(x), topk(n, x); anything else is a 422 naming the first unsupported token.; The result is server-rendered as a table below and a chart above using the existing src/boards/chart.ts; first paint has no layout shift.; Tests: parser accepts each form and refuses an unsupported one; the evaluator is tested on a fixed series; the page is escaped..
Sign in to join this conversation.
new above
offline
Smaller first piece of #3696 (its select-to-explain, pin and reports come later, each its own issue).
Files: src/boards/query.ts (extend, do not duplicate), src/actions/explore.ts, test/explore_query.test.ts. Risks: user text is parsed, never eval'd or shelled; cap series returned so a query answers in milliseconds.