Build dashboards
Create a Maple dashboard from scratch or a template, add charts, stats, tables and funnels over traces, logs, metrics and product events, add variables, and share it.
A dashboard is a grid of widgets that query your telemetry over one time range. Each widget is a chart, a single number, a table, a list, a funnel or a note, built with the query builder or with SQL. Dashboards live on the Dashboards page.
Create a dashboard
On Dashboards, pick one of three starting points:
- Create dashboard opens an empty dashboard named “Untitled Dashboard”. Click the name to rename it.
- Browse templates opens Start from a template. See Templates.
- Import loads a dashboard from a JSON file: a Maple export, a Grafana dashboard or a Perses dashboard. See Import a Grafana dashboard.
A new dashboard opens in edit mode. Click Add widget to add the first widget.
Templates
Templates are ready-made dashboards for common setups:
| Group | Templates |
|---|---|
| Application | Service Health, HTTP Endpoints, gRPC Service, Error Tracking, Top Errors, Platform Overview, Metric Overview, Node.js Runtime, JVM Runtime, Blank Dashboard |
| Database | Postgres Overview, MySQL Overview, MongoDB Overview, Redis Overview |
| Messaging | Kafka Overview, NATS Overview, RabbitMQ Overview |
| Infrastructure | Host Metrics, Docker Containers, Kubernetes Cluster, Kubernetes Pods, Cloudflare Edge, PlanetScale Databases, Google Cloud |
Pick a template to see a live preview on your own data and what it needs. Some templates take Parameters, such as a service name. Click Create dashboard to create your own copy, which you can edit or delete freely.
If the data a template needs is not arriving yet, the panel links to the setup for it. Create it anyway creates the dashboard now. Its widgets stay empty until the data arrives, then fill in on their own.
Import a Grafana dashboard
Click Import on Dashboards and pick the dashboard’s JSON file. Maple accepts the bare dashboard JSON, the { dashboard, meta } response from Grafana’s API, and an “Export for sharing externally” file.
What converts:
- Panels: Time series and Graph become line or bar charts, and Bar chart, Stat, Gauge, Bar gauge, Table, Pie chart, Histogram, Heatmap and Text panels become their Maple widgets. Text panels are shown as Markdown.
- Queries: Prometheus queries (and other PromQL data sources) become PromQL widgets over your Maple metrics. ClickHouse SQL becomes a Raw SQL widget. A query with no data source type is read as PromQL if it has an expression, or as ClickHouse if it has SQL.
- Layout: panel positions and sizes, and rows as sections.
- Variables: Custom, Constant and Text box variables, and Query variables that list label values from Prometheus.
- Time range: relative ranges such as
now-6h. Others fall back to the last 6 hours.
What does not convert, or converts with a change:
- Panels that query Loki, Tempo, Elasticsearch, InfluxDB or another data source Maple cannot run, logs panels, library panels and panel types Maple cannot draw become placeholders.
- A PromQL heatmap of buckets over time becomes a placeholder.
- A panel with several queries keeps only the first. The others are named in the report.
- Transformations, field overrides, repeating panels and rows, and instant queries are not carried over. Instant queries are charted over the time range.
- Interval variables are not imported: references to them use
$__intervalin PromQL and$__interval_sin SQL. Ad hoc filter and data source variables are not imported. A query variable Maple cannot run becomes a text box.
When anything changed, a report lists how many panels converted and every warning before you open the dashboard. The same list stays on the dashboard as a notice until someone dismisses it.
To query Maple from Grafana itself instead, add Maple as a Prometheus data source. See Prometheus API and Grafana.
Add widgets
In edit mode, click Add widget. The picker offers these widget types:
| Widget | Shows |
|---|---|
| Line, Area, Bar | A value over time, optionally split into series by a group-by. |
| Horizontal Bar | Values compared across groups. |
| Pie | Share of a total across groups. |
| Histogram, Heatmap | A distribution, such as request durations. |
| Stat | One number, such as the current error rate. |
| Gauge | One number against a range. |
| Table | Grouped values as rows. |
| List | Recent rows, such as the latest traces or log lines. |
| Funnel | Conversion through a sequence of product event steps. |
| Paths | The paths people take between product events. |
| Note | Markdown text, for headings, explanations and links. |
Most types come with presets you can start from. Pick one, then edit its query.
Queries
A widget’s editor has three Source tabs:
- Query builder reads Traces, Logs, Metrics or Product events. Pick an aggregation, add filters and a group-by, and combine queries with a formula.
- Raw SQL runs your own SQL. The query must reference
$__orgFilterand$__timeFilter(…)(or compare a column against$__startTime), so each refresh reads only the dashboard’s time range. See the SQL reference. - PromQL runs a PromQL query over your metrics. See PromQL widgets.
List, Note and Paths widgets have no source tabs. The preview updates as you edit. Save the widget to put it on the dashboard.
PromQL widgets
The PromQL tab has three fields:
- PromQL query, for example
sum by (. The editor highlights the query, shows parse errors as you type, and suggests metric names, labels and functions.job) ( rate( http_ requests_ total[$_ _ rate_ interval])) - Legend, a series name template such as
{{job}}. - Min step (s), the smallest step between points.
Click Run preview to run the query. Dashboard variables work as $name, ${name} or [[name]], and the Grafana built-ins work too: $__interval and $__rate_interval are filled from the step, $__range from the dashboard’s time range.
Metric and label names follow the Prometheus translation of OpenTelemetry names: dots become underscores, a unit suffix is added, and monotonic sums end in _total. See Prometheus API and Grafana for the rules and the supported PromQL.
Arrange and manage widgets
In edit mode, drag widgets to move them and drag their corners to resize. From the ⋮ menu in the dashboard header:
- Auto layout rearranges the widgets to fill the grid without gaps.
- Add group adds a titled section you can move widgets into.
- Variables and Tags open their editors.
Each widget’s ⋮ menu has Edit, Clone, Create alert, Embed chart and Delete. Create alert turns the widget’s query into an alert rule. Embed chart is covered in Embed dashboard charts.
Click Done to leave edit mode.
Variables
A variable adds a selector to the dashboard header. Widgets that reference it re-query when the selection changes. Add variables from ⋮ → Variables in edit mode.
| Type | Values |
|---|---|
| Query | Values from your telemetry: services, environments, or a span or resource attribute. |
| Custom | A fixed, comma-separated list you define. |
| Textbox | Free text, for example a search term. |
Each variable has a Name, an optional Label and Default value, and can include an All option. Reference it in a widget’s query as $name, for example $service.
The selected values are part of the URL (?var-service=checkout), so a link to the dashboard opens with the same selection.
Time range and refresh
The time range picker in the header applies to every widget. The refresh control reloads widgets on an interval, and the dashboard remembers its default interval.
Share a dashboard
Open ⋮ → Share… and pick who can open the dashboard’s link:
| Option | Who can view |
|---|---|
| Not shared | Members of your organization, inside Maple. |
| Anyone in this organization | Signed-in members of your organization, from the link. |
| Anyone with the link | Anyone who has the link, without signing in. They see the dashboard and its data. |
Replace issues a new link and stops the old one from working.
Shared views render query builder charts, raw SQL, notes, funnels, paths, and the errors, service and logs widgets. The dialog names any widget that will not render for viewers.
To put a single chart into another page, see Embed dashboard charts.
Find, export and restore
- Dashboards lists every dashboard, with search, sorting and tags. Star a dashboard to add it to Favorites. Favorites are stored on your device.
- ⋮ → Export as JSON downloads the dashboard. Import on the Dashboards page loads it back, into this or another organization.
- ⋮ → Version history lists every saved version of the dashboard, so you can look at an earlier one and restore it.