Browse docs
On this page

Dashboards

Grid dashboards as code, a freeform canvas, and a public link when you want one.

A dashboard is a saved arrangement of panels, each backed by an ObiQL query. Every panel's query is the same query language used in the Log Explorer and in alert rules, so a panel and a search are interchangeable - copy one into the other freely.

Grid dashboards

The default dashboard type is a drag-and-drop grid: add a panel, choose a visualization (time series, area, bar, heatmap, pie, top list, node graph, Sankey, geo map, table, single stat, gauge, log list), and write its query. A dashboard-level time range and filters cascade into every panel, so twelve panels over one window stay comparable to each other.

Dashboards are stored as Perses documents - an open, versionable JSON format - so a dashboard built in the grid editor and one authored as a file are the same object, not two representations to keep in sync.

Panel descriptions

A panel can carry an optional description of up to 2,000 characters: what the number means, when to worry, where the runbook is. Set it under the panel's name in the panel drawer. A panel with a description shows an i beside its title; hover or focus it to read the description, or tap it to keep it open.

The description supports markdown: bold, italics, code, headings, lists, quotes, tables and links. Links can point to a page in the app or to an http or https URL. Raw HTML is shown as plain text rather than rendered.

Descriptions are written for your team, so a public dashboard does not show them.

Panel colours

Each chart panel has a Colours option in its Format settings: Classic, Cool, Warm or Severity, each an ordered set of colours given to the panel's series in turn. Every colour reads clearly in both light and dark mode.

A workspace can also have its own chart theme. Admins and owners set it up under Preferences > Workspace > Chart colours:

  1. Select Create a custom theme, give it a name such as "Acme brand", and choose between two and eight colours in the order series should use them. Put your brand colour first so the main series is always drawn in it.
  2. Under Default for dashboard panels, choose the custom theme or any of the built-in palettes.
  3. Select Save. Open dashboards update straight away.

The default applies to every panel whose Colours option is set to Workspace default, which is where new panels start. A panel that picks a palette of its own keeps it when the default changes. Any panel can pick the custom theme by name, even when the default is something else. If the custom theme is removed, panels that used it draw in the workspace default instead.

Everyone in the workspace sees the same colours, and a public dashboard draws in them too. Members and viewers can see the theme but only an admin or owner can change it.

Dashboards as code

Every dashboard has a Code tab showing its document with lint, diff, and apply actions, so a dashboard can be reviewed in a pull request and applied in CI the same way an alert rule can:

There is no CLI of ours to install for this. We implement the server-side API shape that Perses's own percli already expects, so you point the upstream tool at your workspace and it works:

Shell
# Validate dashboard documents locally
percli lint ./dashboards/

# Show what would change before applying
percli diff ./dashboards/

# Apply on merge to main
percli apply ./dashboards/

Geo map

| stats count() by country is one of the first aggregates anybody writes against web, CDN, WAF or authentication logs, and a ranked list of two-letter codes makes you do the projection in your head. The geo map draws that same result on a world map, as bubbles sized by the value with the number on them.

Any | stats <agg>() by <field> with one grouping column and one number qualifies - the same result shape a pie or a top list reads - so no new query syntax is involved. The field can hold ISO 3166-1 alpha-2 (GB), alpha-3 (GBR), numeric-3 (826) or English country names, plus common non-ISO spellings; anything else is normalized with a lookup table rather than a per-panel mapping screen. Rows carrying latitude and longitude directly are plotted as points instead, by naming those two columns in the panel's format options.

Values that could not be placed are never dropped silently. EU, AP, A1 and A2 come out of GeoIP data constantly, and a map that hides them looks identical to a map with no such traffic - so they are counted under the map and can be expanded. Hovering a bubble gives the country, the value the field actually held and the number; clicking one opens the Log Explorer on the query that drew the panel, narrowed to that country. Drag to pan and scroll, pinch or use the map's own controls to zoom; bubbles keep their size as you zoom in, so a crowded region separates instead of magnifying.

The map makes no outbound request. There is no tile provider and no base map service: the country outline ships with the product as a vendored vector asset. A conventional map panel fetches tiles from a third party, which tells that third party which tiles were asked for - and for a map of your traffic, the requested tiles are a signal about where your traffic is. Rendering yours produces no request of any kind. Bubbles are the default rather than country shading for a related reason: the bundled outline has no polygon for Singapore, Hong Kong, Malta, Bahrain or Monaco, all of which are real traffic sources, and a bubble needs only a centroid. Shading is available as a format option, with that limitation stated rather than hidden.

Base searches

A dashboard often has several panels about the same events, such as one counting errors by host, one showing the status mix and one showing total requests, all for service=checkout. Each panel normally runs its own search. A base search runs once when the dashboard loads, and any number of panels attach to it. Each attached panel runs a short post-process over the base search's results instead of searching the events again:

base search "Checkout traffic":  service=checkout | stats count() by level, host, status
panel "Errors by host":           level=error | stats sum(count) as errors by host | sort -errors
panel "Status mix":               | stats sum(count) as requests by status
panel "Total requests":           | stats sum(count) as requests

That is three panels for the cost of one search. Their numbers also agree with each other, because they are all slices of the same result.

Creating one. There are three ways to start:

  • From a panel. In the add or edit panel form, set Data to A base search and pick one, or choose New base search... to name and write one in place. The base search's query is shown read-only, and the Post-process field below it lists the columns it produces.
  • From a panel's own query. Once a panel's query aggregates, Make this a base search turns that query into a base search and attaches the panel to it. The next panel can then pick it.
  • From a suggestion. The dashboard can find panels that should share a base search and set it up for you, as described below.

Suggested base searches

You don't have to spot shared panels yourself. Settings > Base searches looks for two or more panels that count the same events: the same filter, then a | stats count() by ..., then only stages a post-process can run. For each group it finds, it offers Share one base search.

Say a dashboard has these two panels:

panel "Requests by host":    service=checkout | stats count() by host | sort -count
panel "Requests by status":  service=checkout | stats count() by status

Sharing creates one base search that groups by every field either panel uses, and rewrites each panel to add its own counts back up:

base search:                 service=checkout | stats count() by host, status
panel "Requests by host":    | stats sum(count) as count by host | sort -count
panel "Requests by status":  | stats sum(count) as count by status

Each panel draws exactly what it drew before, because a count grouped by host is the sum of the counts grouped by host and status. Anything after the | stats, like the | sort above, stays on the panel.

Nothing changes until you choose Share one base search and save, and you can review or rename the new base search in the same drawer first. Panels that use avg, percentiles or distinct_count are never suggested, because those don't add up from smaller groups the way a count does.

Rules. Each of these stops a panel from showing a wrong number:

  • A base search must aggregate with | stats or | timechart. A post-process over a page of raw events would count only that page.
  • A base search can return up to 10,000 rows. Past that, its panels show an error asking you to group by fewer fields or narrow the filter, rather than working from a cut-off result.
  • A post-process can use | where, | eval, | stats, | sort, | limit, | dedup, | table, | fields and | rename. Stages that need the original events, such as | timechart, | json, | extract and | lookup, belong in the base search instead. A post-process that starts with a plain filter (level=error | ...) works like a leading | where, and an empty post-process shows the base search's rows as they are.
  • A base search always uses the dashboard's time range, so an attached panel can't set its own.
  • Dashboard filters work in both places. A filter used only in the base search still refreshes every panel attached to it, and a post-process can use one too (| where level=$level).

If a base search fails, each panel attached to it shows an error naming that base search, and the rest of the dashboard keeps working. A broken post-process affects only its own panel.

Managing them. Settings > Base searches lists each base search with its query, the columns it produces and the panels using it. Changes apply together when you save. Removing a base search that is in use doesn't break its panels: each one gets the base search plus its post-process as a query of its own, and if that can't be combined exactly, the save message names the panels to check. In Edit mode, an attached panel shows a Base: badge with the base search's name, and Open in Explorer opens the base search with the post-process added.

In a dashboard document, base searches live under spec.logsSaaSBaseSearches, keyed by an id, and a panel attaches with logsSaaSBaseSearch: "<id>" on its query. Both keys are optional, so dashboards that don't use base searches are unchanged, and other Perses tools ignore them.

On a public dashboard, an attached panel is checked against its base search, which is the query that actually reads events. Query text is never sent to visitors.

Freeform canvas

A second dashboard type places live components - a single-value metric, a status indicator, a sparkline, a log tail - at exact positions on an uploaded background image, such as an architecture diagram or a map. It's the same dashboard object with a different layout: one list, one sharing model, one set of permissions, chosen when the dashboard is created.

Public dashboards

Any dashboard can be published to an unauthenticated URL so it can be shared with people who don't have an account. A published dashboard exposes only the rendered panel output - aggregated numbers and charts - never the underlying log lines, the query text, or a way to change what a panel is showing. Panels that would expose raw events are never published, and any panel that would publish values of a field (like a list of email addresses) requires the owner to acknowledge exactly which field before it goes live.

Tenant Isolation & Data Boundaries

A dashboard document, its revision history, and every panel query are scoped to the workspace whose authenticated session owns them. Panel queries execute through the same tenant-scoped query engine as the Log Explorer, so a dashboard cannot widen what it can see by being on a canvas or behind a public link. A public link runs queries under a context that carries no user identity and can return only aggregated results - see Tenant Isolation for the full model.