Heatmap
This section explains how to create heatmap dashboard elements and add them to your dashboard.
Heatmaps show values over time as a grid of colored cells. Each column is a time interval, and the color of each cell shows the value. Use heatmaps to find outliers and shifts in behavior, such as latency spikes or error bursts.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Send data to your Axiom dataset.
- Create an empty dashboard.
Create a dashboard element
- In the sidebar, click Dashboards and open the dashboard to which you want to add the heatmap.
- Click Edit dashboard.
- Click Add element in the top right corner.
- Select Heatmap from the Add element menu (under Chart > Chart aggregation or Data).
- Choose one of the following:
- Click Builder to create your chart using a visual query builder. For more information, see Create chart using visual query builder.
- Click Editor to create your chart using the Axiom Processing Language (APL). Create a chart in the same way you create a chart in the Editor.
- Optional: Configure the dashboard element.
- Click Save.
The new element appears in your dashboard. In the page header, click Save dashboard to save your changes to the dashboard.
Heatmap types
Events datasets
The query determines what the rows show:
- Value buckets: Use the
histogramaggregation. Each row is a value range, and the color of each cell shows how many events fall in that range. - One row per group: Use any other single aggregation, such as
count,avg, or one percentile, and group by_timeand at least one other field. Each row is a group, and the color of each cell shows the value of the aggregation.
Metrics datasets
Heatmaps of metrics datasets display one row per series. The query needs an align or bucket transformation.
Color
In the settings panel on the right, expand Color:
- Theme: Select a gradient or one of 10 single colors. The default is Blue. Aurora and Ember change in lightness, so high values stand out from the background. Prism and Spectrum change in hue, which helps you tell many levels apart.
- Highlight: Select which values get the strongest color. The default is High values. Select Low values when low values indicate a problem, such as a low cache hit ratio.
Row labels
For heatmaps with one row per group or series, expand Y-axis and select an option in Labels. Default displays the row labels only when all of them fit. Show always displays them, and Hide never displays them.
Legend and sorting
Metrics heatmaps with one row per series support a row legend. In the settings panel on the right, expand Legend and set Position to Bottom or Right. The default is Disabled.
When the legend is enabled, it lists each series with its Total value, and the heatmap rows follow the legend order from top to bottom. To reorder rows, open the sort menu in the legend and select:
- Sort by: Series name or Total.
- Direction: Ascending or Descending.
By default, the legend sorts by Total in Descending order. Sorting is personal to the viewer and does not change the saved dashboard configuration.
Example with Builder
Select sample-http-logs and add histogram(req_duration_ms, 15). Use the Heatmap element under Chart aggregation to display request durations over time.

Example with APL

Example with one row per group
The following query displays one row for each HTTP method. The color of each cell shows the average request duration of the method.