Introducing a new way to review your PRs.

Read the announcement

hyperdxio / hyperdx

Resolve production issues, fast. An open source observability platform unifying session replays, logs, metrics, traces and errors powered by ClickHouse and OpenTelemetry.

View on GitHub

19 documents · Updated Oct 30, 2026

docs / dashboards-and-visualization

Dashboards and visualization

Dashboards give users a saved view of data made from query-backed tiles. Users can build charts, arrange them into groups and tabs, apply shared filters and variables, and save the result for later use. The same model supports temporary URL views, local dashboards, portable templates, live refresh, focused drill-downs, and synchronized chart views.

Dashboard workspace

The dashboard workspace turns chart definitions into a shared visual surface. A dashboard can contain tiles, tags, filters, saved query defaults, and optional groups with tabs. Users can create a saved dashboard or work in a temporary URL-based view before saving it. The list also provides preset views, templates, search, tags, favorites, creator filters, sorting, and grid or list presentation. See packages/…/DashboardsListPage.tsx• L72-169, packages/…/DashboardsListPage.tsx• L215-425, packages/…/dashboard.ts• L41-64, and packages/…/DBDashboardPage.tsx• L1821-1925.

Dashboard lifecycle

Users reach dashboards from the dashboard list, preset views, or templates. A saved dashboard is selected by its ID and loaded from the dashboard service. Changes are written back as a whole dashboard update. A dashboard without an ID stays in the URL as a temporary view, while local mode stores saved dashboards in the local dashboard store. The list can create a team-persisted dashboard or a browser-only temporary dashboard.

The workspace supports this general flow:

flowchart LR
    A[Choose or create dashboard] --> B[Set query time and filters]
    B --> C[Add or edit tiles]
    C --> D[Render tile data]
    D --> E[Arrange groups and tabs]
    E --> F[Save or share view]
    F --> B

Dashboard data passes through a read and write boundary before it reaches the renderer or a save request. Legacy tile color names are changed to current palette names when dashboards are fetched, saved, or kept in URL-backed local state. Unknown values remain visible to validation instead of being silently changed. This lets old dashboards continue to render and converge to the current color contract when they are saved.

References: packages/…/dashboard.ts• L64-136 packages/…/dashboard.ts• L153-205 packages/…/dashboard.ts• L215-341 packages/…/DBDashboardPage.tsx• L1966-1994

Dashboard layout

Tiles can remain ungrouped or belong to a group. Groups provide named sections that can be collapsed, reordered, bordered, or split into tabs. Collapse state and the active tab belong to the current viewer's URL state, while the group's default collapse setting is part of the saved dashboard. Tile actions can also move a tile to another group or tab, or back to the ungrouped area. See packages/…/DashboardContainer.tsx• L55-103, packages/…/DBDashboardPage.tsx• L2187-2334, and packages/…/MoveToGroupSubmenu.tsx• L14-86.

The dashboard view also supports kiosk mode. Kiosk mode keeps the data view and removes authoring controls, so a dashboard can serve as a focused display surface. See packages/…/DBDashboardPage.tsx• L3364-3383.

References: packages/…/DashboardContainer.tsx• L55-103 packages/…/DBDashboardPage.tsx• L2187-2334 packages/…/MoveToGroupSubmenu.tsx• L14-86 packages/…/DBDashboardPage.tsx• L3364-3383

Chart creation and rendering

Charts begin as a query plus a display choice. The editor lets a user choose a source or write raw SQL or PromQL. It supports time-series, table, number, bar, pie, heatmap, search, event-pattern, and Markdown presentations when the source and query allow them. The raw SQL editor also offers display-specific query parameters, macros, and dashboard variables. The user can run the query, inspect the result, and preview generated SQL or PromQL before saving the chart as a tile. See packages/…/EditTimeChartForm.tsx• L1062-1336, packages/…/ChartPreviewPanel.tsx• L259-550, and packages/…/utils.ts• L55-83.

The editor separates the query that was last run from fields that are still being edited. This keeps the preview tied to a submitted query until the user runs the next one. In a dashboard, the preview can apply broadcast filters and variable selections. Required filters block query-backed previews until their selections are applied, while Markdown remains available because it does not run a query. Alerts are a separate case: an alert preview does not use dashboard-level filters or variables. The preview can also show generated SQL or PromQL after variable and display-specific expansion.

Query modes

The chart model supports three query modes. Builder mode turns structured series and conditions into a query for a selected source. Raw SQL mode keeps a SQL template and connection. PromQL mode keeps Prometheus queries and a connection. The saved chart retains its query mode and display settings so the dashboard can rebuild the runtime query for its current time range and filter values.

References: packages/…/types.ts• L1566-1617 packages/…/utils.ts• L258-438 packages/…/EditTimeChartForm.tsx• L1062-1226

Series and derived values

The builder lets users add, order, copy, remove, and group series. A series can select an aggregation, value expression, condition, group, format, and display color. Metric series use the metric type and name that match the selected source. The editor keeps aggregation choices valid for the selected metric and replaces stale choices when the metric type changes.

Users can combine two series as a ratio or add formula series for supported metric and event sources. Formula series are available only for display types that can render them. Ratios and formulas are mutually exclusive. Grouped metric ratios can use either a per-group rate or each group's share of the total.

References: packages/…/ChartEditorControls.tsx• L125-172 packages/…/ChartEditorControls.tsx• L416-500 packages/…/ChartSeriesEditor.tsx• L114-152 packages/…/ChartSeriesEditor.tsx• L210-245 packages/…/ChartSeriesEditor.tsx• L364-405 packages/…/dashboards.ts• L336-395

Heatmap authoring

A heatmap has a mode that defines what each cell means. Distribution mode places events or samples into value buckets. Series mode uses one row per group or series. PromQL heatmaps also support histogram mode, where each row represents a Prometheus histogram bucket. Builder heatmaps offer distribution and series modes; PromQL heatmaps offer distribution, series, and histogram modes.

Distribution mode asks for a value expression and a count expression. Series mode uses the normal single-series chart path. Histogram mode uses the values already represented by Prometheus histogram buckets. Trace sources can default distribution to duration, which makes duration distributions available without extra setup. All supported modes can use dashboard variables and filter expressions.

The distribution preview represents two related queries. The first finds value bounds. The second uses those bounds to build the bucketed result. Series and histogram modes use the appropriate single query path. The generated SQL or PromQL view labels the active stage or expressions so the query shown to the user matches the data flow.

References: packages/…/HeatmapModeControl.tsx• L5-35 packages/…/HeatmapSeriesEditor.tsx• L49-155 packages/…/EditTimeChartForm.tsx• L160-212 packages/…/ChartPreviewPanel.tsx• L67-163 packages/…/ChartPreviewPanel.tsx• L354-363

Query assembly

The chart renderer is the bridge between a saved chart and its data query. It expands dashboard variables, applies time bounds and filters, and adds the grouping and time buckets needed by the display. PromQL charts use their service query path, raw SQL charts keep their SQL shape, and builder charts are translated into source queries. Multi-series metric charts are combined into one result so values, gaps, ratios, and derived formula series stay aligned by group and time bucket.

References: packages/…/renderChartConfig.ts• L2803-2831 packages/…/renderChartConfig.ts• L3091-3325

Display types

Display type controls how the query result is presented and which editor rules apply. Time-series charts show values across time. Tables show rows. Number charts emphasize a single value. Bar, pie, and heatmap charts show categorical or distribution views. Search, event-pattern, and Markdown tiles provide views for event data or explanatory content.

The editor validates choices before a tile is saved. It checks the source, connection, or SQL; checks series expressions and metric names; limits series for display types that need one value; and checks formulas, heatmap inputs, and alert settings where they apply. Switching the source or display type normalizes the saved shape by removing fields that the new combination cannot use. The server applies the same important contract checks when dashboards are created or updated.

References: packages/…/EditTimeChartForm.tsx• L573-622 packages/…/EditTimeChartForm.tsx• L1062-1260 packages/…/utils.ts• L86-160 packages/…/utils.ts• L609-829 packages/…/dashboards.ts• L163-239

Tile rendering

Each tile resolves its source, adds the current dashboard time range and granularity, then supplies the active filters and only the variables used by that tile. Required filters can block a tile until the user selects a value. Tiles load when they first enter the viewport and keep their loaded result while the user scrolls. A tile can open in full screen with its own time range and granularity without changing the dashboard view.

The chart surface adds shared card framing, toolbars, legends, tooltips, and display controls. Tables preserve visible rows during a refresh, support paging and sorting, and disable links until fresh rows arrive. Charts in the same page share hover position for cross-highlighting. A modal or side panel can use an isolated sync scope so its hover state does not affect charts behind it.

A chart or table row can open a search view that carries the visible time range and selected group or value context. Distribution heatmaps on trace sources can open an event-delta view. PromQL series and histogram heatmaps do not use that event view. Focused service query details use the same chart surface with their own filters and an isolated sync scope.

Recent dashboard behavior keeps tile loading demand bounded. A tile does not fetch data until it has entered the viewport, but it keeps its loaded state when it leaves and later re-enters. Full-screen tiles load immediately because they are visible, and their time range and granularity stay local to the full-screen view. Ad hoc filter actions from eligible tile rows update only the dashboard filters targeted at that tile; kiosk mode does not expose those actions.

References: packages/…/DBDashboardPage.tsx• L498-746 packages/…/DBDashboardPage.tsx• L1159-1458 packages/…/DBDashboardPage.tsx• L1510-1603 packages/…/DBDashboardPage.tsx• L2391-2437 packages/…/DBNumberChart.tsx• L102-205 packages/…/DBTableChart.tsx• L114-355 packages/…/chartSync.tsx• L3-31 packages/…/ChartUtils.tsx• L1292-1424 packages/…/ServiceDashboardDbQuerySidePanel.tsx• L79-203

Batch tile querying

External automation can query many dashboard tiles in one read-only operation. The operation loads a saved dashboard, applies a requested time window and simulated variable selections, then returns a compact result for each selected tile. A failure stays with its tile, so one broken query does not hide successful results from the same dashboard.

The operation runs all non-Markdown tiles by default or a caller-selected set of tile IDs. It deduplicates explicit IDs and reports unknown IDs and tiles left for a later call. Markdown tiles are reported as skipped. The batch has bounded parallel work and one shared time budget. A tile that cannot finish in that budget is returned as an error rather than extending the whole call. Raw SQL macro and dashboard-variable issues are returned as warnings.

References: packages/…/queryTiles.ts• L159-376 packages/…/variables.ts• L17-127 packages/…/validation.ts• L93-150

Filters and variables

Dashboard filters provide shared selections for tile queries. A filter can query values from a data source, read Prometheus label values, or offer a fixed list of authored values. A selection can broadcast as a condition to matching tiles, become a named variable for expressions, or do both when the filter type and dashboard support those controls. A required filter can stop its target tiles from loading until it has a selection.

Filter definition

The filter editor presents one shared form for the display name and filter type. Users can switch between queried values, PromQL label values, and static values while editing. Shared fields remain in the form, but save stores only the fields for the chosen type.

Queried-value filters use a source, a column or expression, and an optional condition for the value lookup. PromQL label filters use a PromQL source, a label, and an optional series matcher. Static-value filters use at least one authored option. Variable names start from the display name for a new filter, while an existing variable name stays stable when the display name changes.

When required-filter controls are available, users can require at least one selection. The requirement can block only tiles that use the filter or every tile on the dashboard. The filter list makes the value source, broadcast target, variable name, and required scope visible before a filter is edited.

References: packages/…/DashboardFilterEditForm.tsx• L78-83 packages/…/DashboardFilterEditForm.tsx• L139-163 packages/…/DashboardFilterEditForm.tsx• L255-277 packages/…/DashboardFiltersList.tsx• L50-160

Ad hoc filters

Ad hoc filters let a dashboard viewer add conditions without defining a separate value list for each field. The filter reads keys and values from selected log, trace, or session sources through SQL, or from PromQL labels through Prometheus sources. The viewer combines conditions with operators such as equality, inequality, pattern match, or LIKE, then the dashboard applies the conditions to the filter's selected sources.

The condition control shows one pill per condition and lets the viewer add, edit, remove, or clear conditions. It limits the number of conditions and rejects values that are too long to store in the URL. When a limit or size rule blocks an edit, the viewer gets a notice that explains the action needed. A condition that is not supported by the selected source type remains visible as invalid instead of being applied. This lets the viewer correct one condition without losing the other conditions in the filter.

The editor offers keys and values from the selected sources. SQL sources expose scalar columns and known keys inside map or JSON columns. PromQL sources expose label names and label values, excluding the reserved metric-name label. Lookups use only sources known to contain a selected key after metadata loads; a hand-entered key falls back to all selected sources. SQL key names are quoted when needed so the stored key remains a valid query expression.

Ad hoc filters can broadcast conditions and can have a variable name for URL state, but they are not currently exposed as chart variables for expressions. Switching between SQL and PromQL clears source mappings because the two modes use different source kinds.

References: packages/…/AdhocDashboardFilter.tsx• L40-71 packages/…/AdhocDashboardFilter.tsx• L87-177 packages/…/notifications.ts• L8-29 packages/…/useAdhocFilterOptions.ts• L44-109 packages/…/useAdhocFilterOptions.ts• L111-177 packages/…/useAdhocFilterOptions.ts• L239-355 packages/…/AdhocFilterEditForm.tsx• L31-145 packages/…/types.ts• L1267-1288 packages/…/filters.ts• L884-897

Filter scope

Filter values are kept in the URL so a link can reproduce the current view. Variable-enabled filters use their variable name as the preferred address. Other filters use their expression. The reader supports both forms so older links and saved state remain usable. A filter with no source scope applies to all eligible tiles. A filter with source scope applies only to tiles that use one of its listed sources. A filter with broadcasting disabled does not add a condition to tiles, but it can still provide a variable when variable mode is enabled.

The filter state rebuilds URL entries against the dashboard's current filter definitions. It writes variable-enabled selections in variable-keyed form when possible. Ad hoc conditions use the ad hoc filter's variable name. Exclusions and ranges stay expression-keyed because the variable form cannot represent them. Entries that do not match a declared filter remain in the URL so the workspace can report them instead of silently dropping them. This preserves links across filter renames or deletions while making stale expressions and variable names visible.

References: packages/…/useDashboardFilters.tsx• L29-41 packages/…/useDashboardFilters.tsx• L43-101 packages/…/useDashboardFilters.tsx• L152-207 packages/…/useDashboardFilters.tsx• L218-255 packages/…/useDashboardFilters.tsx• L298-347 packages/…/DBDashboardPage.tsx• L1907-1950

Filter value queries

Queried-value filters load selectable values from their source. An optional condition narrows that lookup and can use dashboard variables. PromQL label filters load label values from a Prometheus source and can narrow the series with a matcher. Static-value filters use authored options instead, so they keep author order and do not need a value query. Ad hoc filters use a separate key-and-value lookup for the sources selected in their definition; they do not use the linked dropdown lookup described below.

By default, each queried filter sees available values without the other filter selections. Linked mode narrows each queried list by sibling selections. Loading and query errors appear beside the affected control while the dropdown stays usable, so users can still clear or change a selection. The value lookup groups compatible requests so linked filter lists stay consistent with the current source, time range, and selections.

Ad hoc lookups first load source metadata for the current time range. They then load values only from sources that are known to contain the selected key. If the key was typed by hand and no source is known to contain it, the lookup checks all selected sources. SQL and PromQL use separate lookup paths, so a filter does not query a source with the wrong kind. SQL suggestions include scalar fields and discovered map or JSON keys when field metadata is available. When only column metadata is available, the lookup falls back to scalar columns. Values are deduplicated and object-shaped map or JSON results are not offered as scalar suggestions.

References: packages/…/QueryExpressionFilterEditForm.tsx• L174-207 packages/…/PromqlLabelFilterEditForm.tsx• L43-117 packages/…/DashboardFilters.tsx• L198-271 packages/…/useAdhocFilterOptions.ts• L65-127 packages/…/useAdhocFilterOptions.ts• L154-195 packages/…/useAdhocFilterOptions.ts• L209-254 packages/…/useAdhocFilterOptions.ts• L257-328 packages/…/useAdhocFilterOptions.ts• L337-373 packages/…/useDashboardFilterValues.tsx• L174-319

Variable expansion

A variable is the selected value of a variable-enabled dashboard filter. Tile expressions can reference it as $name or ${name}. SQL can also use filter macros and conditional macros to keep an empty selection valid or to apply a condition only when values exist. SQL values are quoted. Lucene values use exact-match terms. PromQL values use regular expressions.

Only variables referenced by a tile are passed into that tile's query. The editor reports unknown variables, invalid macro use, unsupported macros in Lucene or PromQL, and unsafe empty-selection patterns while the user edits an expression.

References: packages/…/variables.ts• L29-79 packages/…/variables.ts• L430-442 packages/…/variables.ts• L1142-1283 packages/…/DBDashboardPage.tsx• L603-655

Filter and variable contracts

The filter editor checks the contract between the selected type and its fields before a filter is saved. Queried-value filters require a source and expression. PromQL label filters require a PromQL source and label. Static-value filters require at least one option. Ad hoc filters require at least one source of the selected source type. Variable names must be valid and unique. A filter must broadcast its value, expose it as a variable, or both when those controls are available.

Dashboard create and update requests validate filter variable names, filter modes, and static option uniqueness on the server. PromQL label filters are also checked against the workspace's PromQL sources. This prevents a client or imported dashboard from saving a label filter against an incompatible source. The dashboard saves query defaults and filter selections together when the user chooses to save the current view. URL values take precedence on load.

References: packages/…/filterFormState.ts• L53-135 packages/…/AdhocFilterEditForm.tsx• L37-143 packages/…/DashboardFiltersList.tsx• L126-160 packages/…/dashboards.ts• L47-123 packages/…/DBDashboardPage.tsx• L2040-2081

Templates and dashboard import

Templates make dashboards portable between workspaces. Export replaces source, connection, and linked dashboard IDs with names. Import then maps those names to resources in the current workspace before it creates a new dashboard or replaces a selected dashboard.

Template catalog

The template catalog offers ready-made dashboards grouped by tags. Each entry gives the user a name and short description, then sends the user to the import flow. Built-in templates are checked against the dashboard template schema before they appear in the catalog.

References: packages/…/DashboardTemplatesPage.tsx• L20-105 packages/…/index.ts• L13-56

Import mapping

Import is a two-stage process:

  1. The file or built-in template is parsed as JSON and checked against the template schema. Legacy tile color names are normalized before schema validation.
  2. The user maps template sources, raw SQL connections, filter sources, ad hoc filter source lists, filter scopes, and linked search or dashboard targets to local resources.
  3. The import builds a dashboard document with local IDs.
  4. The dashboard is created or updated and the user is sent to the resulting dashboard.

The import warns about malformed saved filter conditions, filter value-query conditions, and saved dashboard queries without blocking the mapping step. It requires a source for source-backed filters and a PromQL source for PromQL label filters. Ad hoc filters require at least one mapped source of the correct kind, and their optional filter scope uses the same kind restriction. Static filters do not need a source mapping. Source, connection, and dashboard mappings propagate to related tiles, filters, ad hoc source lists, and chart links that refer to the same template resource. Unmapped chart links are removed instead of keeping invalid IDs.

References: packages/…/DBDashboardImportPage.tsx• L158-230 packages/…/DBDashboardImportPage.tsx• L442-577 packages/…/DBDashboardImportPage.tsx• L652-873 packages/…/DBDashboardImportPage.tsx• L987-1065 packages/…/utils.ts• L635-790

External dashboard exchange

The external dashboard interface gives automation a stable dashboard shape for supported tiles, filters, saved query state, and layout containers. It translates between that public shape and the internal dashboard model, then validates source references, filter modes, formulas, heatmap modes, and tile container links before a write. Unsupported PromQL tiles are not represented by this interface, so automation must not expect them to survive an external read and write round trip.

The exchange keeps display settings such as series limits, formulas, number-tile colors, and heatmap mode when the public shape supports them. It also avoids silently changing an invalid heatmap into a line chart. A malformed or incompatible resource is surfaced as a validation error or omitted with a warning rather than being presented as a different chart.

References: packages/…/dashboards.ts• L228-325 packages/…/dashboards.ts• L491-570 packages/…/dashboards.ts• L572-699 packages/…/dashboards.ts• L1118-1295

Time-series presentation

Time-series charts turn timestamped query results into aligned buckets and one or more value series. The time range and granularity drive the visible x-axis. Automatic granularity adapts to the selected range, and aligned ranges use end-exclusive boundaries so adjacent buckets do not count the same event twice. Users can fill missing buckets, compare with the previous period, change between line and stacked-bar views when allowed, and focus or hide series.

Series behavior

The chart protects the browser from high-cardinality results with a rendered series limit. When the limit hides series, the user can request more series within a bounded load-all limit. The cap treats a group as one logical series, so comparison pairs and multiple value columns stay together. A series selection can isolate one series or several series. Clicking a point can open a search for the matching time bucket and group values when the chart has a source that supports drill-down.

Metric charts can combine several selected series into one aligned result. Formula series are derived from those values and can be shown with or instead of their operand series. The result keeps a stable value order and preserves missing groups as gaps, so chart and number displays can interpret the data consistently.

References: packages/…/ChartUtils.tsx• L732-1010 packages/…/DBTimeChart.tsx• L356-457 packages/…/renderChartConfig.ts• L2803-2831 packages/…/renderChartConfig.ts• L3091-3109

Time annotations

Time-series tiles can overlay alert firing and recovery points or release markers. These annotations use the tile's visible range, including a full-screen range when the tile is expanded. Release data is scoped by the tile's source and predicates so one tile does not show another tile's releases.

References: packages/…/DBDashboardPage.tsx• L798-840

Refresh and synchronization

The dashboard time picker sets the shared visible range. Live mode and kiosk mode refresh the dashboard as time advances, while manual refresh reruns the current view. A live heatmap keeps its own finer automatic granularity instead of using the dashboard's coarse refresh interval. A full-screen tile keeps its range local, so exploratory changes there do not move the dashboard's other tiles.

Chart hover synchronization is separate from data refresh. It aligns cross-highlighting without merging query state. Drawers and side panels can isolate their hover state from the charts behind them. The chart editor exposes time range and granularity for query-backed views. Display settings also control range alignment, missing-value fill, comparison, series limits, and chart formatting.

References: packages/…/DBDashboardPage.tsx• L501-552 packages/…/DBDashboardPage.tsx• L784-840 packages/…/DBDashboardPage.tsx• L1539-1562 packages/…/DBDashboardPage.tsx• L2391-2437 packages/…/EditTimeChartForm.tsx• L944-1055 packages/…/ChartPreviewPanel.tsx• L303-325 packages/…/chartSync.tsx• L3-31

Trace waterfall view

The trace waterfall turns a focused trace into a time-ordered view of spans and related log rows. It combines the two event types around the focused time, preserves the parent-child span shape, and gives users a way to connect service work with its logs.

Trace and log focus

The view loads trace rows on both sides of the focus time and can load correlated logs from a separate log source. It shows total wall-clock duration for the loaded spans and marks the value as a lower bound when the time window or row limit cuts off part of the trace. Separate trace and log filters can use Lucene or SQL. A bad filter falls back to unfiltered data and reports the filter error without hiding valid rows.

References: packages/…/DBTraceWaterfallChart.tsx• L345-517 packages/…/DBTraceWaterfallChart.tsx• L623-765

Waterfall hierarchy

The waterfall orders rows by timestamp, builds a hierarchy from span relationships, and supports row selection for drill-down. Users can show or hide spans, correlated logs, and span events. Collapse controls work on one node, one level, or the full tree, while service colors and status markers help separate normal work from warnings and errors.

References: packages/…/DBTraceWaterfallChart.tsx• L978-1121 packages/…/DBTraceWaterfallChart.tsx• L1156-1665

Service and infrastructure views are preset dashboard experiences built on the same chart and filter model. Read Service and infrastructure views for their domain-specific views and LLM observability for dashboards that track model and prompt behavior.

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the two dashboard filter state address schemes aligned across URL parsing, selection resolution, serialization, saved defaults, and ignored-entry warnings.
  • Keep ad hoc filter source types, source-kind limits, metadata key discovery, key quoting, value lookup, condition storage, query expansion, import mapping, and limit or size notices aligned.
  • When changing ad hoc metadata lookups, keep SQL field and column fallback behavior separate from PromQL label discovery. Do not let a source of the wrong kind receive a lookup.
  • When changing filter types, preserve the form-to-schema boundary so fields from the inactive type do not enter the saved dashboard.
  • When changing required filters, preserve the contract between editor flags, stored minimum-selection fields, dashboard blocking, tile blocking, and filter-list status.
  • When adding or changing PromQL label filters, keep source restrictions, label lookup, matcher expansion, import mapping, and server-side source checks aligned.
  • When changing filter modes, preserve the contract between the editor, variable declarations, source scope, tile query construction, and dropdown value lookups.
  • When changing ad hoc filters, preserve the contract between source lists, broadcast scope, URL conditions, condition limits, schema checks, user notices, and source-specific query expansion.
  • When adding a variable reference or macro, update language-aware expansion, empty-selection behavior, editor validation, and the variables passed to each tile.
  • When changing a display type, check allowed query modes and fields, saved-config normalization, preview rendering, tile rendering, and alert or annotation support.
  • When changing source or display switching, keep normalization of formulas, metric fields, table ordering, heatmap fields, and event or search selections aligned with the renderer.
  • When changing heatmap modes, keep mode-specific source gates, defaults, value and count expressions, granularity, query conversion, generated query previews, external conversion, and tile rendering aligned.
  • When changing chart formulas or multi-series rendering, preserve operand and derived-series order so chart formatters and display types interpret results correctly.
  • When changing preview state, preserve the boundary between the last submitted query, live form fields, dashboard filter application, required-filter blocking, alert filter isolation, and generated query text.
  • When changing time range or granularity state, preserve the boundary between shared dashboard state, local full-screen state, editor preview state, and URL state.
  • When changing time-series series limits, keep comparison periods and multi-value groups together and keep hidden-series counts in the same unit as rendered groups.
  • When changing chart drill-down links, keep variable expansion, source requirements, time range, and group or value filters compatible with the destination search view.
  • When changing template resources, keep name-to-ID mapping consistent for tiles, filters, filter scopes, raw SQL connections, and on-click targets.
  • When changing group or tab movement, keep tile container IDs, tab IDs, layout persistence, active-tab URL state, and highlight navigation aligned.
  • When changing external dashboard conversion, keep public display settings, formulas, heatmap modes, container references, and unsupported tile behavior safe for GET-to-write round trips.
  • When changing chart color tokens, keep read-time migration, URL-backed local state, template import, render fallback, external responses, and server-side palette validation aligned.
  • When changing focused service panels, keep their filters, searched range, and isolated chart-sync scope separate from the parent dashboard.
  • When changing batch tile querying, keep explicit tile selection, default non-Markdown selection, unknown and unrun ID reporting, per-tile status handling, variable validation, warnings, and the shared deadline aligned.

Important failure modes

TriggerConsequenceGuard
A raw SQL tile has no connection or SQL templateThe tile cannot build a queryChart form validation requires both fields before save.
A builder tile has no source or a required series expression is emptyThe tile has no valid source query or value seriesChart form validation checks source and series requirements.
A URL names an undeclared filter expression or variableThe entry is not applied and the view can show unfiltered dataThe dashboard keeps the entry and shows a warning after load.
A required filter has no selectionIts target tiles do not load; a dashboard-wide requirement can block every tileThe filter editor stores the requirement and the dashboard reports the missing selection.
A queried filter has no source or expressionIts value list cannot be resolvedThe filter editor requires both fields before save.
An ad hoc filter has no source or uses a source of the wrong kindIts keys and values cannot be loaded, or the dashboard cannot be savedThe editor, metadata lookup, and import mapping restrict source kinds and require a source.
Ad hoc source metadata is still loading for a selected keyValues are not ready, and an early lookup could query sources that do not contain the keyThe value lookup waits for key discovery and then narrows sources.
An ad hoc condition is too long or exceeds the condition limitThe condition is not storedThe condition schema and editor reject invalid size or count and show a notice.
An ad hoc condition uses an operator unsupported by the selected source typeThe condition is not applied to that source typeThe condition pill marks it invalid and asks the viewer to replace it.
An ad hoc URL entry is malformedThe invalid condition is dropped or the filter cannot represent itThe editor validates before writing and keeps an invalid edit open for correction.
A PromQL label filter uses a non-PromQL source or has no labelIts label list cannot be resolved or the dashboard cannot be savedThe editor restricts the source and the API checks the source kind.
A variable reference has an invalid language format or unsafe empty stateThe query can become invalid or apply the wrong conditionLanguage-aware validation reports the reference problem before the query runs.
A chart formula refers to a missing series or has invalid syntaxQuery rendering stops instead of producing a misleading derived seriesThe renderer validates formula references before building the chart query.
A chart switches to a source or display type that cannot use its current fieldsThe saved tile can contain a query shape the renderer does not supportChart-config normalization removes incompatible fields and keeps only supported formula and heatmap settings.
A heatmap mode is not compatible with its sourceThe tile cannot form a supported heatmap queryThe editor and dashboard validation gate sources by heatmap mode.
A heatmap value or count expression is missingThe distribution view cannot form useful bucketsThe heatmap editor validates the mode-specific inputs.
A template has malformed JSON or fails its schemaImport stops before it can create or replace a dashboardImport parses JSON and checks the template schema first.
A template resource has no local mappingRelated tiles, ad hoc source lists, or chart links can lose their source or targetThe mapping step resolves resource names and drops unmapped links rather than keeping invalid IDs.
An external dashboard contains a PromQL tileThe tile is not returned by the external dashboard interfaceThe external converter skips unsupported PromQL tiles and logs a warning.
An external heatmap has an invalid source or modeThe write is rejected or the chart cannot renderShared validation checks heatmap compatibility before the dashboard is saved.
A tile contains an unknown chart color tokenThe tile can render with a fallback but a save or import can fail palette validationLegacy names are migrated; unknown values remain visible to schema validation.
A time-series result exceeds its render limitSome logical groups are hidden or the browser may face high memory useThe chart caps rendered groups and bounds the load-all action.
A full-screen tile changes its time rangeOther dashboard tiles do not follow the exploratory changeFull-screen range and granularity stay local to the tile.
A tile points to a deleted sourceThe tile cannot query dataThe dashboard shows a placeholder and asks the viewer to select a new source.
A chart editor preview uses stale form fields after a source or display changeThe preview can show a query the user did not submitThe editor stores the last submitted query and replaces invalid sources or shapes before auto-submit.
A trace or log filter fails while the waterfall loadsA bad filter can hide valid rows or blank the whole trace viewFiltered queries fall back to unfiltered rows; only a fatal trace failure blanks the view.
A waterfall query reaches its row or time-window limitTotal duration becomes a lower bound and some spans or logs are absentThe view marks the result as truncated and displays loaded rows within the cap.
A batch tile request names an unknown tile, repeats an ID, or selects more tiles than one call can runThe caller can miss a requested tile or repeat work if the result does not expose the selection outcomeExplicit IDs are deduplicated; unknown and unrun IDs are returned for correction or a follow-up call.
A batch tile query reaches its shared deadlineSome tiles return timeout errors while completed tile summaries remain availableOne whole-call deadline cancels active work and marks queued or unfinished tiles as errors.
A batch tile receives an undeclared, invalid, or over-wide variable selectionThe query does not represent a dashboard state the user can selectVariable resolution rejects unknown variables, invalid static options, and multiple values for single-select filters.

Key files

FileWhy to read it
packages/…/DBDashboardPage.tsxMain dashboard lifecycle, shared query state, required-filter blocking, tile rendering, full-screen views, layout, lazy loading, ad hoc filter actions, and refresh flow.
packages/…/dashboard.tsDashboard data model, remote and local persistence, temporary URL views, and color migration.
packages/…/DashboardsListPage.tsxDashboard entry points, preset views, saved and temporary creation, and browsing.
packages/…/EditTimeChartForm.tsxChart authoring, submitted preview state, filters, validation, display switching, heatmap modes, and save actions.
packages/…/HeatmapModeControl.tsxUser-facing distribution, series, and PromQL histogram mode choices.
packages/…/HeatmapSeriesEditor.tsxHeatmap mode-specific value, count, series, and filter authoring.
packages/…/ChartPreviewPanel.tsxPreview rendering and generated SQL or PromQL explanations.
packages/…/utils.tsChart mode conversion, saved-config normalization, query editor completions, and authoring validation.
packages/…/renderChartConfig.tsConversion of chart settings into source queries and alignment of multi-series results.
packages/…/DBTimeChart.tsxTime-series presentation, comparison, drill-down, and display switching.
packages/…/ChartUtils.tsxTime-range normalization, result shaping, series limits, and search links.
packages/…/DashboardFiltersList.tsxFilter summary view with value sources, broadcast targets, variables, and required status.
packages/…/AdhocFilterEditForm.tsxAd hoc source type, source scope, broadcast, and variable settings.
packages/…/AdhocDashboardFilter.tsxViewer-facing ad hoc condition pills, edits, source-type validity, URL-size checks, and condition limits.
packages/…/notifications.tsUser notices for ad hoc condition size and count limits.
packages/…/useAdhocFilterOptions.tsSQL field and column keys, PromQL labels, source-aware value lookups, key quoting, metadata loading, and fallback behavior for ad hoc filters.
packages/…/useAdhocFilterOptions.test.tsxGuarantees for SQL and PromQL key discovery, source narrowing, quoting, scalar suggestions, and loading behavior.
packages/…/useDashboardFilters.tsxURL-backed filter state, variable and expression addressing, source scope, and required filters.
packages/…/useDashboardFilterValues.tsxFilter dropdown value lookup and linked sibling selections.
packages/…/variables.tsVariable references, language-aware expansion, SQL macros, and validation.
packages/…/DBDashboardImportPage.tsxTemplate parsing, validation warnings, resource mapping, and dashboard creation or replacement.
packages/…/MoveToGroupSubmenu.tsxGroup and tab targets used by tile movement actions.
packages/…/utils.tsPortable dashboard template conversion in both directions.
packages/…/dashboards.tsServer-side dashboard, filter, source, and color validation.
packages/…/dashboards.tsExternal dashboard conversion and validation for supported chart and layout contracts.
packages/…/ServiceDashboardDbQuerySidePanel.tsxFocused service query charts, detail filters, and isolated synchronization.
packages/…/DBTraceWaterfallChart.tsxTrace and correlated-log loading, filter fallback, hierarchy, and timeline presentation.
packages/…/queryTiles.tsRead-only batch querying of dashboard tiles, variable application, per-tile outcomes, warnings, and bounded execution.
packages/…/variables.tsVariable declarations and validation for programmatic dashboard runs.
packages/…/validation.tsWarnings for raw SQL macros and dashboard variable references during batch tile checks.
packages/…/helpers.tsShared execution path that turns a tile configuration into a bounded source query.