The panel element contains all the information about the panel including the visualization type, panel and visualization configuration, queries, and transformations.
There’s a panel element for each panel contained in the dashboard.
Transformations allow you to manipulate data returned by a query before the system applies a visualization.
Using transformations you can: rename fields, join time series data, perform mathematical operations across queries, or use the output of one transformation as the input to another transformation.
Name
Usage
id
string. Unique identifier of transformer.
disabled?
bool. Disabled transformations are skipped.
filter?
MatcherConfig. Optional frame matcher. When missing it will be applied to all results.
topic?
DataTopic. Where to pull DataFrames from as input to transformation. Options are: series, annotations, and alertStates.
options
Options to be passed to the transformer. Valid options depend on the transformer id.
MatcherConfig
Matcher is a predicate configuration.
Based on the configuration a set of field or values, it’s filtered to apply an override or transformation.
It comes with in id (to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.
Name
Usage
id
string. The matcher id. This is used to find the matcher implementation from registry.
options?
The matcher options. This is specific to the matcher implementation.
The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.
Each column within this structure is called a field.
A field can represent a single time series or table column.
Field options allow you to change how the data is displayed in your visualizations.
Name
Type/Definition
defaults
FieldConfig. Defaults are the options applied to all fields.
overrides
The options applied to specific fields overriding the defaults.
matcher
MatcherConfig. Optional frame matcher. When missing it will be applied to all results.
properties
DynamicConfigValue. Consists of:
id - string
value?
FieldConfig
Name
Type/Definition
displayName?
string. The display value for this field. This supports template variables where empty is auto.
displayNameFromDS?
string. This can be used by data sources that return an explicit naming structure for values and labels. When this property is configured, this value is used rather than the default naming strategy.
description?
string. Human readable field metadata.
path?
string. An explicit path to the field in the data source. When the frame meta includes a path, this will default to ${frame.meta.path}/${field.name}. When defined, this value can be used as an identifier within the data source scope, and may be used to update the results.
writeable?
bool. True if the data source can write a value to the path. Auth/authz are supported separately.
filterable?
bool. True if the data source field supports ad-hoc filters.
unit?
string. Unit a field should use. The unit you select is applied to all fields except time. You can use the unit’s ID available in Grafana or a custom unit.
Available units in Grafana. As custom units, you can use the following formats:
suffix:<suffix> for custom unit that should go after value.
prefix:<prefix> for custom unit that should go before value.
time:<format> for custom date time formats type for example
time:YYYY-MM-DD
si:<base scale><unit characters> for custom SI units. For example: si: mF. You can specify both a unit and the source data scale, so if your source data is represented as milli (thousands of) something, prefix the unit with that SI scale character.
count:<unit> for a custom count unit.
currency:<unit> for custom a currency unit.
decimals?
number. Specify the number of decimals Grafana includes in the rendered value. If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. For example 1.1234 will display as 1.12 and 100.456 will display as 100. To display all decimals, set the unit to string.
min?
number. The minimum value used in percentage threshold calculations. Leave empty for auto calculation based on all series and fields.
max?
number. The maximum value used in percentage threshold calculations. Leave empty for auto calculation based on all series and fields.
{...}. Specified by the FieldConfig field in panel plugin schemas.
ValueMap
Maps text values to a color or different display text and color.
For example, you can configure a value mapping so that all instances of the value 10 appear as Perfection! rather than the number.
string.
ValueMappingResult. Map with <value_to_match>: ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } }.
RangeMap
Maps numerical ranges to a display text and color.
For example, if a value is within a certain range, you can configure a range value mapping to display Low or High rather than the number.
Maps regular expressions to replacement text and a color.
For example, if a value is www.example.com, you can configure a regex value mapping so that Grafana displays www and truncates the domain.
Maps special values like Null, NaN (not a number), and boolean values like true and false to a display text and color.
See SpecialValueMatch in the following table to see the list of special values.
For example, you can configure a special value mapping so that null values appear as N/A.
string. The fixed color value for fixed or shades color modes.
seriesBy?
FieldColorSeriesByMode. Some visualizations need to know how to assign a series color from by value color schemes. Defines how to assign a series color from “by value” color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. Options are: min, max, and last.
FieldColorModeId
Color mode for a field.
You can specify a single color, or select a continuous (gradient) color schemes, based on a value.
Continuous color interpolates a color using the percentage of a value relative to min and max.
Accepted values are:
Name
Description
thresholds
From thresholds. Informs Grafana to take the color from the matching threshold.
palette-classic
Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for graphs and pie charts and other categorical data visualizations.
palette-classic-by-name
Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations
continuous-GrYlRd
Continuous Green-Yellow-Red palette mode
continuous-RdYlGr
Continuous Red-Yellow-Green palette mode
continuous-BlYlRd
Continuous Blue-Yellow-Red palette mode
continuous-YlRd
Continuous Yellow-Red palette mode
continuous-BlPu
Continuous Blue-Purple palette mode
continuous-YlBl
Continuous Yellow-Blue palette mode
continuous-blues
Continuous Blue palette mode
continuous-reds
Continuous Red palette mode
continuous-greens
Continuous Green palette mode
continuous-purples
Continuous Purple palette mode
shades
Shades of a single color. Specify a single color, useful in an override rule.
fixed
Fixed color mode. Specify a single color, useful in an override rule.