Ratel Docs
FeaturesMonitor

Explore

Ask your traces a question with RQL, and keep the answer as a dashboard widget.

Explore answers: what does my data say about this one question?

It is a scratch page of panels. Each panel is a query and its chart. Open it from Monitor › Explore.

Explore with one Traces panel: Show Metric, the Metric, Aggregation and Group by fields, the RQL query, Run, and a bar chart of traces per day

Build a panel

  • Show picks the kind: Metric, Flow, Step flow, Funnel, Clusters or Map. They are the kinds of a dashboard widget.
  • Metric, Aggregation and Group by write the query for you.
  • Chart draws the rows as a Line, Bar, Number or Table.
  • Start from replaces the panel with a ready question, such as Errors by model, Cost by agent or Tool flow.

Add panel adds another panel. The time menu and Filter at the top apply to every panel. The address holds the panels, so a link opens the same page.

RQL

RQL (Ratel Query Language) is one SELECT over events, traces, scores, sessions, users and prompts. The page's time range is its window: the query needs no date filter.

select coalesce(attributes['gen_ai.tool.name'], name) as tool, count(*) as calls
from events
where type = 'tool_call'
group by tool
order by calls desc
limit 20
  • The RQL query field highlights the text and completes table, column and function names as you type.
  • Run runs it. An error underlines the place where it is.
  • Functions include count, sum, avg, p50, p95, rate(<condition>) and time_bucket('1 day', started_at).
  • Edit the text by hand and the Metric field reads Custom.

Keep the answer

A panel's … menu has:

  • Save to dashboard: the panel becomes a widget of a dashboard.
  • View traces: the traces behind the panel, in Traces.
  • Create alert: an alert on the panel's metric.
  • Copy query JSON, Duplicate and Remove.

Over MCP

On this page