---
title: RailQL explorer and dashboards
description: Run RailQL queries, choose visualizations, inspect events, and build dashboard panels.
---
The RailQL explorer runs queries interactively. Dashboard panels save queries and their visualizations for repeated use.

<Banner variant="primary">RailQL is available through <a href="/platform/priority-boarding">Priority Boarding</a>. Breaking changes may occur.</Banner>

## Use the explorer

The explorer is the panel under the query bar on the Observability page that shows a query's result.

1. Navigate to **Observability** in your project's top navigation. The page follows the environment selected in the dashboard.
2. Enter a query, or click a source pill such as **Logs** or **HTTP Logs**.
3. Click **Run**, or press Ctrl/Cmd+Enter.

Click **Close** to return to the dashboard. The [quickstart](/observability/railql#quickstart) walks through a first query.

### Edit a query

The editor completes source names, labels, fields, operators, and the values of labels in your environment. Press Tab to accept a completion. Hover over a name to see what it means, or over a metric to see its kind and unit. Errors are underlined as you type.

You can also edit a query by clicking it:

- Click a filter term, a function, or a `by` label in the bar, or press Alt+Down with the cursor on it, to change its operator or value, group by it, negate it, or remove it.
- Hover over the bar to see where a filter, group, window, rollup, or stage can go, and click one of those spots to add one.
- On `logs` and `build_logs`, click **+ search** above the source, or choose **Search log text** at the top of the **+ filter** list, to add a [message search](/observability/railql/language-reference#message-search) and type the text to find.
- In a chart's legend, open a series' menu to filter to it or exclude it. Click a series to hide it, or shift-click it to show only that series.
- In an event stream, hover over a cell and click its filter or exclude button, or click a column's **Group by** button to count the events by that column.

After a query runs, the pills under the bar suggest next steps, such as grouping by a label you haven't used. Hover over a pill to see its query, and click it to run it.

When a query fails, the error appears in place of the result. If RailQL knows how to fix the query, a button under the error runs the corrected query.

The query is part of the page URL, so you can share a link to a result. The browser's back and forward buttons step through the queries you ran.

### Choose a visualization

RailQL picks a visualization from what the query returns. When more than one fits, a picker above the result lets you switch.

| The query returns | Default | Also available |
|---|---|---|
| An event stream | **Rows** | |
| Events of `traces` | **Traces** | **Rows** |
| Events of `spans` filtered to one `trace_id` | **Waterfall** | **Rows** |
| A Counter | **Bar**, or **Stacked bar** when grouped | **Line**, **Stacked area**, **Number** |
| An UpDownCounter | **Line** | **Stacked area**, **Bar**, **Stacked bar**, **Number** |
| A Gauge | **Line** | **Bar**, **Number** |
| A Histogram | **Heatmap** | **Histogram** |
| A single number | **Number** | |

**Number** and **Histogram** return one value or distribution per series for the whole range. Changing to one of these visualizations changes the time aggregation, not only the presentation. Next to a heatmap or histogram, the explorer offers `| p50`, `| p99`, and `| avg` as one-click rewrites that chart a line.

### Understand Number values

A Number panel summarizes the selected range. It doesn't necessarily show the latest value.

| Query | Meaning as a Number |
|---|---|
| `http rollup count` | Total requests in the range |
| `http rollup count \| rate` | Average requests per second over the range |
| `metric railway.memory.usage` | Average recorded memory usage over the range, per replica |
| `metric railway.memory.usage rollup last` | Latest recorded memory usage in the range, per replica |
| `metric railway.memory.usage rollup max` | Peak recorded memory usage in the range, per replica |

Use an explicit rollup when the distinction between average, latest, and peak matters. A peak only includes recorded samples, so a spike between samples can be missed.

### Watch live data

When the selected range ends at now, charts in the explorer and on dashboard panels stay current. Each graph refreshes about once per step, between every 30 seconds and every 3 minutes. Click **Pause live updates** next to the time range to stop refreshing, and **Resume live updates** to start again.

The newest steps of a live chart are often still filling with data, so they're marked **Data incomplete**: a line turns dashed, and bars and heatmap columns are striped. This keeps a step that's still being reported from reading as a drop.

Event streams in the explorer follow new events in the same conditions. See [Follow new events](#follow-new-events).

### Narrowed ranges

If a source keeps less history than the selected range covers, RailQL reads from the oldest available data and says so above the result, in the explorer, on dashboard panels, and in agent chat cards. When your plan's log retention is the reason, the notice links to upgrading your plan. See [Retention](/observability/railql/data-sources#retention).

### Read an event stream

Events are listed newest first, 100 at a time, with columns that depend on the source. Click **Load older** at the bottom of the table for the next page. Click a row to open the **Row** panel, which shows every column, the log line's keys or the span's attributes, and a **Copy JSON** button. Services show as names, with the ID underneath.

A histogram above the rows counts the matching events over the whole range, split by level for logs, by status class for HTTP requests, by status for spans and DNS lookups, and by direction for flows. Click a category to filter to it, or Alt-click it to exclude it. Drag across the histogram to zoom the time range in.

### Follow new events

When the selected range ends at now and live updates are on, the explorer follows the event stream as new events arrive. While the table is scrolled to the top, new events appear under **Live, new rows appear here**. Events that arrive late are placed where their timestamp belongs.

If you've scrolled down, new events wait behind a **new rows** button instead of moving what you're reading. Click it, or scroll back to the top, to show them. The table holds up to 5,000 events and drops the oldest pages after that. **Load older** pages them back in. With 5,000 new events waiting, the tail pauses and shows **Live tail paused** until you show them.

Click **Pause live updates** next to the time range to stop following, and **Resume live updates** to continue. The explorer also stops following while its browser tab is hidden, and picks up where it left off when you return. If following fails, the table shows **Live tail stopped** with the reason and a **Resume** button.

Each user can follow up to five event streams at once. Opening a sixth stops it with a message. Close another explorer, or switch away from its tab, then click **Resume**. The trace list and event streams on dashboard panels and in agent chat cards don't follow new events. Click **Load newer** to read events that arrived after the first page.

### List traces

A `traces` query lists traces, newest first, the same way the Traces page does. Each row shows the trace's duration, root span, service, number of spans, and status. Click a trace to open its waterfall, and click **Open as query** to run that trace's `spans` query in the explorer. On a dashboard panel, a `traces` query draws as plain rows.

```railql
traces{service=api status=error}
```

### Open a trace

A `spans` query filtered to one `trace_id` draws that trace as a waterfall:

```railql
spans{trace_id=4bf92f3577b34da6a3ce929d0e0e4736}
```

Paste a trace ID into the query bar, and the editor offers this query. Click a span to see its attributes.

## Dashboard panels

A RailQL query can be a panel on the Observability dashboard. Panels draw any visualization the explorer does, including event streams and trace waterfalls.

To add a panel:

1. Run the query in the explorer and click **Add to dashboard**. You can also click **Add block** on the dashboard and select **RailQL query**.
2. Pick how to draw the query under **Draw as**. The dialog previews it.
3. Enter a name, or click **AI generate** in the name field to have one proposed from the query.
4. Click **Add block**.

A panel's menu has **Edit**, **Open in explorer**, and **Delete**. If a panel's query changes so that its visualization no longer fits, the panel draws the default and says so.

Agents connected through the MCP server can also add and arrange panels. See [Agents and MCP](/observability/railql#agents-and-mcp).

Monitors attach to the CPU, Memory, Network, and Disk Usage blocks, not to RailQL panels. See [Monitors](/observability#monitors).

## Observability settings

**Project Settings → Observability** shows the state of each source in the selected environment. Logs, build logs, metrics, DNS lookups, and network flows are collected automatically. HTTP requests are recorded for services with a public domain, and the traces row shows which services are traced and whether their first spans have arrived. Click a source's name to open it in the explorer.

The same page is where you set up tracing for your services. See [Tracing](/observability/tracing).