Dashboard Panels
Panels are the building blocks of Grafana dashboards. Each panel displays a visualization of your data using queries, transformations, and customizable options.Panel Model
ThePanelModel class represents a panel’s configuration and state:
Panel Types
Grafana includes many built-in visualizations:Time Series Visualizations
Time Series
Line, bar, and area charts for time-series data with multiple series support
State Timeline
Visualize state changes over time with categorical data
Status History
Show periodic state over time in a grid format
Trend
Display trends and sparklines for single metrics
Statistical Visualizations
Stat
Single value with optional graph and thresholds
Gauge
Radial or linear gauge for displaying single values
Bar Gauge
Horizontal or vertical bars with threshold colors
Heatmap
Visualize value distribution over time in a heat map
Graph Visualizations
Bar Chart
Categorical data visualization with grouped or stacked bars
Histogram
Distribution of values across buckets
Pie Chart
Proportional data visualization
Candlestick
Financial data with OHLC (Open, High, Low, Close) values
Data Visualizations
Table
Tabular data display with sorting, filtering, and formatting
Logs
Log line display with parsing and filtering
Node Graph
Network topology and relationship visualization
Traces
Distributed tracing visualization
Geo & Special
Geomap
Geographical data on interactive maps
Canvas
Custom visualizations with drag-and-drop elements
Dashboard List
List of dashboards matching criteria
Alert List
Active alerts and their states
Creating and Configuring Panels
Adding a Panel
1
Enter Edit Mode
Click Add → Visualization or the + icon on an existing panel
2
Select Visualization
Choose the visualization type from the picker
3
Configure Query
Build your query using the data source query editor
4
Customize Options
Adjust panel options, field config, and overrides
5
Apply Changes
Click Apply to save the panel to the dashboard
Panel Editor Interface
The panel editor has three main sections:Query Configuration
Panels can have multiple queries that are combined:Query Options
Control query behavior:Field Configuration
Field configuration controls how data is displayed:Thresholds
Define color-coded thresholds:Value Mappings
Map values to text or colors:Data Transformations
Transform query results before visualization:Common Transformations
Filter by Name
Include or exclude fields by name or regex pattern
Organize Fields
Reorder, rename, and hide fields
Join by Field
Combine multiple queries by a common field
Add Field from Calculation
Create calculated fields using math expressions
Group By
Group data by field values
Sort By
Sort data by field values
Reduce
Reduce multiple values to single values using aggregation
Series to Rows
Convert time series to row format
Panel Links
Add clickable links to panels:Panel links support variable interpolation including
${__field.name}, ${__field.labels.labelname}, ${__value.raw}, and ${__value.text}.Panel Repeating
Dynamically create panels based on variable values:1
Create a Variable
Add a multi-value variable in dashboard settings
2
Configure Panel Repeat
In panel editor, go to Panel options → Repeat options
3
Select Variable
Choose the variable to repeat by
4
Set Direction
Choose horizontal or vertical layout
Panel Options
Each panel type has specific options. Common options include:Best Practices
Query Optimization
- Use appropriate time ranges for your data frequency
- Set
maxDataPointsto match panel width - Enable query caching for expensive queries
- Use query interval hints:
$__intervalor$__rate_interval
Visual Design
- Keep panel titles clear and concise
- Use consistent color schemes across related panels
- Add descriptions for complex visualizations
- Choose appropriate visualization types for your data
Performance
- Limit the number of series per panel (aim for less than 50)
- Use transformations efficiently
- Avoid unnecessary field overrides
- Consider panel caching for static data
Advanced Features
Library Panels
Create reusable panels across dashboards:Panel Migration
Panels can define migration handlers:Next Steps
Dashboard Variables
Add dynamic filtering with variables
Templating
Use template syntax in queries and titles
Transformations
Learn about all available transformations
Sharing
Share individual panels or entire dashboards