Panelπ
Constructorπ
Methodsπ
buildπ
Builds the object.
axis_border_showπ
axis_centered_zeroπ
axis_color_modeπ
axis_grid_showπ
axis_labelπ
axis_placementπ
axis_soft_maxπ
axis_soft_minπ
axis_widthπ
bar_radiusπ
Controls the radius of each bar.
bar_widthπ
Controls the width of bars. 1 = Max width, 0 = Min width.
cache_timeoutπ
Sets panel queries cache timeout.
color_by_fieldπ
Use the color value for a sibling field to color each bar value.
color_schemeπ
Panel color configuration
datasourceπ
The datasource used in all targets.
decimalsπ
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
.
descriptionπ
Panel description.
display_nameπ
The display value for this field. This supports template variables blank is auto
fill_opacityπ
Controls the fill opacity of the bars.
full_highlightπ
Enables mode which highlights the entire bar area and shows tooltip when cursor
hovers over highlighted area
gradient_modeπ
Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.
Gradient appearance is influenced by the Fill opacity setting.
grid_posπ
Grid position.
group_widthπ
Controls the width of groups. 1 = max with, 0 = min width.
heightπ
Panel height. The height is the number of rows from the top edge of the panel.
hide_fromπ
hide_time_overrideπ
Controls if the timeFrom or timeShift overrides are shown in the panel header
id_valπ
Unique identifier of the panel. Generated by Grafana when creating a new panel. It must be unique within a dashboard, but not globally.
intervalπ
The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables.
This value must be formatted as a number followed by a valid time
identifier like: "40s", "3d", etc.
See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options
legendπ
library_panelπ
Dynamically load the panel
line_widthπ
Controls line width of the bars.
linksπ
Panel links.
mappingsπ
Convert input values into a display string
max_valπ
The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.
max_data_pointsπ
The maximum number of data points that the panel queries are retrieving.
max_per_rowπ
Option for repeated panels that controls max items per row
Only relevant for horizontally repeated panels
min_valπ
The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.
no_valueπ
Alternative to empty string
orientationπ
Controls the orientation of the bar chart, either vertical or horizontal.
overridesπ
Overrides are the options applied to specific fields overriding the defaults.
def overrides(overrides: list[cogbuilder.Builder[dashboard.DashboardFieldConfigSourceOverrides]]) -> typing.Self
query_caching_ttlπ
Overrides the data source configured time-to-live for a query cache item in milliseconds
repeatπ
Name of template variable to repeat for.
repeat_directionπ
Direction to repeat in if 'repeat' is set.
h
for horizontal, v
for vertical.
scale_distributionπ
def scale_distribution(scale_distribution: cogbuilder.Builder[common.ScaleDistributionConfig]) -> typing.Self
show_valueπ
This controls whether values are shown on top or to the left of bars.
spanπ
Panel width. The width is the number of columns from the left edge of the panel.
stackingπ
Controls whether bars are stacked or not, either normally or in percent mode.
targetsπ
Depends on the panel plugin. See the plugin documentation for details.
textπ
thresholdsπ
Map numeric values to states
thresholds_styleπ
Threshold rendering
def thresholds_style(thresholds_style: cogbuilder.Builder[common.GraphThresholdsStyleConfig]) -> typing.Self
time_fromπ
Overrides the relative time range for individual panels,
which causes them to be different than what is selected in
the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different
time periods or days on the same dashboard.
The value is formatted as time operation like: now-5m
(Last 5 minutes), now/d
(the day so far),
now-5d/d
(Last 5 days), now/w
(This week so far), now-2y/y
(Last 2 years).
Note: Panel time overrides have no effect when the dashboardβs time range is absolute.
See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options
time_shiftπ
Overrides the time range for individual panels by shifting its start and end relative to the time picker.
For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting 2h
.
Note: Panel time overrides have no effect when the dashboardβs time range is absolute.
See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options
titleπ
Panel title.
tooltipπ
transformationsπ
List of transformations that are applied to the panel data before rendering.
When there are multiple transformations, Grafana applies them in the order they are listed.
Each transformation creates a result set that then passes on to the next transformation in the processing pipeline.
transparentπ
Whether to display the panel without a background.
unitπ
Unit a field should use. The unit you select is applied to all fields except time.
You can use the units ID availables in Grafana or a custom unit.
Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts
As custom unit, 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
. This one is a bit more advanced as 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.
with_overrideπ
Overrides are the options applied to specific fields overriding the defaults.
def with_override(matcher: dashboard.MatcherConfig, properties: list[dashboard.DynamicConfigValue]) -> typing.Self
with_targetπ
Depends on the panel plugin. See the plugin documentation for details.
with_transformationπ
List of transformations that are applied to the panel data before rendering.
When there are multiple transformations, Grafana applies them in the order they are listed.
Each transformation creates a result set that then passes on to the next transformation in the processing pipeline.
x_fieldπ
Manually select which field from the dataset to represent the x field.
x_tick_label_max_lengthπ
Sets the max length that a label can have before it is truncated.
x_tick_label_rotationπ
Controls the rotation of the x axis labels.
x_tick_label_spacingπ
Controls the spacing between x axis labels.
negative values indicate backwards skipping behavior