Creating Your First Dashboard
Dashboards are the heart of Grafana. They allow you to visualize your data through customizable panels that display metrics, logs, and traces from your data sources. This guide walks you through creating your first dashboard from scratch.Prerequisites
Before you begin:- Grafana is installed and running
- You have at least one data source configured (we’ll use TestData for this guide)
- You understand the query language of your data source
- You have the appropriate permissions (Editor or Admin role)
Understanding Dashboards
A dashboard is a collection of panels arranged in a grid layout. Each panel:- Queries data from one or more data sources
- Displays data using visualizations (graphs, tables, gauges, etc.)
- Can be resized, moved, and customized
- Updates automatically based on time ranges and refresh intervals
Creating a New Dashboard
Step 1: Open the Dashboard Creation Interface
- Click Dashboards in the left sidebar
- Click New → New Dashboard
- You’ll see an empty dashboard canvas with an Add panel option

Step 2: Add Your First Panel
Panels are the building blocks of dashboards.- Click + Add in the edit pane or drag a panel onto the dashboard
- Click Configure on the new panel to open the panel editor
- Query tab: Define what data to fetch
- Visualization selector: Choose how to display the data
- Panel options: Customize titles, descriptions, and settings
Step 3: Configure Your Data Query
Let’s create a simple time series query using the TestData data source.Select Data Source
- In the Queries tab, click the Data source dropdown
- Select TestData DB (built-in test data source)
Build the Query
- In the Scenario field, select Random Walk
- Click Refresh to preview the data
Step 4: Choose a Visualization
Grafana suggests visualizations based on your data, but you can choose any type.Available Visualizations
Time Series
Line, bar, and point graphs for time-based data
Stat
Display single values with optional sparklines
Gauge
Show values on circular or linear gauges
Bar Chart
Compare values across categories
Table
Display data in rows and columns
Pie Chart
Show proportional data
- Grafana automatically suggests Time series
- Leave it as the default, or click All visualizations to explore other options
- The visualization preview updates automatically
Step 5: Customize Panel Options
Make your panel more informative by adding titles and descriptions.- Scroll down to Panel options section
- Set Title:
Server Temperature - Set Description:
Random walk simulation of server temperature over time - The title appears at the top of your panel
Step 6: Configure Visualization Settings
Customize how your data is displayed.Graph Styles
- In the Graph styles section:
- Style: Lines
- Line width: 2
- Fill opacity: 10
- Point size: 5
Axis Configuration
- Scroll to Axis section:
- Label: Temperature (°C)
- Unit: celsius (°C)
- Min: 0
- Max: Auto
Standard Options
- In Standard options:
- Unit: Temperature → Celsius (°C)
- Decimals: 1
- Display name: $
Step 7: Set Up Thresholds
Thresholds add visual indicators when values cross certain boundaries.- Scroll to Thresholds section
- Click + Add threshold
- Configure thresholds:
- Base: Green (0)
- Warning: Orange (70)
- Critical: Red (90)
Thresholds are especially useful for gauges, stats, and tables where you want immediate visual feedback.
Step 8: Save Your Panel
- Click Save in the top-right corner
- Enter dashboard details:
- Title:
My First Dashboard - Folder: Select or create a folder
- Title:
- Click Save
Adding More Panels
Let’s add additional panels to make a complete dashboard.Add a Stat Panel
- Click + Add panel in the dashboard
- Click Configure
- Configure the query:
- Data source: TestData DB
- Scenario: Random Walk
- Alias:
Current Value
- Select Stat visualization
- In Panel options:
- Title:
Current Temperature
- Title:
- In Stat styles:
- Graph mode: None
- Color mode: Value
- Text size: Auto
- Click Apply
Add a Gauge Panel
- Click + Add panel
- Click Configure
- Configure query same as above
- Select Gauge visualization
- In Panel options:
- Title:
Temperature Gauge
- Title:
- In Gauge:
- Show threshold labels: Yes
- Show threshold markers: Yes
- Set thresholds (Base: 0, Warning: 70, Critical: 90)
- Click Apply
Add a Table Panel
- Click + Add panel
- Click Configure
- Configure query:
- Data source: TestData DB
- Scenario: CSV Metric Values
- Select Table visualization
- In Panel options:
- Title:
Metrics Table
- Title:
- Click Apply
Organizing Your Dashboard
Panel Layouts
Grafana supports two panel layout types:Custom Layout
- Drag and drop panels to reposition
- Resize panels by dragging the lower-right corner
- Provides complete control over panel placement
Layout Tips
Auto Grid Layout
- Click Dashboard options icon (gear) in the sidebar
- Under Layout, select Auto grid
- Configure:
- Min column width: Standard, Narrow, Wide, or Custom
- Max columns: 1-10
- Row height: Standard, Short, Tall, or Custom
Organizing with Rows
Group related panels into collapsible rows.- Select multiple panels by clicking and dragging
- Click Group panels → Group into row
- In the edit pane:
- Title:
Temperature Metrics - Hide row header: Toggle on/off
- Title:
- Click Save
Organizing with Tabs
Create tabbed sections for different views.- Select panels
- Click Group panels → Group into tab
- Configure tab title and options
- Add more tabs using + New tab
When to Use Rows vs Tabs
When to Use Rows vs Tabs
Use Rows when:
- You want to see multiple sections at once
- Users need to scroll through related content
- You have hierarchical data groupings
- Different user roles need different views
- You have distinct categories of information
- Screen space is limited
Dashboard Settings
Configure dashboard-wide settings.Time Range
- In the dashboard toolbar, click the time picker
- Select a time range:
- Relative: Last 5m, Last 1h, Last 24h, Last 7d, etc.
- Absolute: Specific start and end dates
- Set Refresh interval: 5s, 10s, 30s, 1m, 5m, etc.
Dashboard Variables
Variables allow dynamic dashboards that adapt to user selection.- Click Edit on the dashboard
- Click + Add variable
- Configure variable:
- Name:
server - Type: Query
- Data source: Your data source
- Query: Query to fetch variable values
- Name:
- Click Save
${server}
Dashboard Tags
- Click the Dashboard settings icon (gear)
- Under General, add tags:
productionmonitoringinfrastructure
- Tags help organize and search dashboards
Advanced Panel Features
Panel Links
Add links to related dashboards or external resources.- In panel editor, scroll to Panel links
- Click + Add link
- Configure:
- Title: View Server Details
- URL: /d/server-details?var-server=$
- Open in new tab: Yes
- Link appears in panel menu (three dots)
Value Mappings
Map numeric values to text labels.- In panel editor, go to Value mappings
- Click + Add value mapping
- Configure:
- Type: Range
- From: 0, To: 50
- Display text: Low
- Color: Green
- Add more mappings for different ranges
Field Overrides
Customize individual series or fields.- Go to Overrides tab
- Click + Add field override
- Select field to override
- Add properties:
- Color scheme
- Unit
- Display name
- Thresholds
Saving and Sharing
Save Dashboard
- Click Save dashboard (disk icon)
- Enter a description of changes
- Click Save
Save as Copy
- Click Save dashboard dropdown
- Select Save as copy
- Enter new name and folder
- Click Save
Export Dashboard
- Click Dashboard settings (gear icon)
- Go to JSON Model
- Click Copy to clipboard or Save to file
- Shared with other Grafana instances
- Version controlled in Git
- Imported via API
Best Practices
Clear Titles
Use descriptive titles that explain what each panel shows
Appropriate Visualizations
Choose visualizations that best represent your data type
Consistent Colors
Use consistent color schemes across related panels
Logical Grouping
Organize panels into rows or tabs by function
Time Ranges
Set appropriate default time ranges for your use case
Annotations
Add annotations to mark important events
Dashboard Design Tips
Layout Guidelines
Layout Guidelines
- Place the most important metrics at the top
- Use larger panels for primary visualizations
- Group related metrics together
- Maintain consistent panel sizes within rows
- Leave whitespace for visual clarity
Performance Optimization
Performance Optimization
- Limit the number of panels per dashboard (20-30 max)
- Use appropriate time ranges to reduce query load
- Leverage caching for frequently accessed data
- Avoid very short refresh intervals unless necessary
- Use query result transformations efficiently
User Experience
User Experience
- Add panel descriptions to provide context
- Use variables for flexible filtering
- Set sensible default time ranges
- Include links to related dashboards
- Add dashboard-level documentation
Next Steps
Add Data Sources
Connect your real data to Grafana
User Management
Set up teams and permissions
Troubleshooting
Panel Shows 'No Data'
Panel Shows 'No Data'
- Verify your data source is connected and working
- Check your query syntax
- Ensure the time range includes data
- Review data source permissions
- Check browser console for errors
Dashboard Won't Save
Dashboard Won't Save
- Confirm you have Editor or Admin permissions
- Check dashboard title is not empty
- Verify folder permissions
- Look for validation errors in the UI
Slow Dashboard Performance
Slow Dashboard Performance
- Reduce the number of panels
- Optimize data source queries
- Increase refresh interval
- Use shorter time ranges
- Enable query caching if available