Mock series
The Mock series feature generates simulated time series data without making external API calls. Use this feature for testing dashboards, demonstrating visualizations, or developing queries before connecting to real data sources.
Before you begin
- Ensure you have the Infinity data source installed and configured
Create a mock series query
- In the query editor, select Series as the Type.
- Select Random Walk or Expression as the Source.
- Configure the series options.
Series options
Random walk
When you select Random Walk as the source, the plugin generates a time series that simulates random fluctuations. Each data point randomly increases, decreases, or stays the same compared to the previous point.
The step interval adjusts automatically based on your dashboard’s time range:
Expression
When you select Expression as the source, you can use mathematical expressions to generate precise data patterns. The plugin uses the mathjs library for expression evaluation.
Available variables
Expression examples
Series alias
The alias field sets the display name for each series. When generating multiple series, you can use the ${__series.index} variable to create unique names.
Data overrides
Use data overrides to conditionally modify values in the generated series. Access this feature through the Advanced Options button.
Override configuration
Each override consists of:
Override variables
Override examples
Use cases
- Dashboard development: Test panel layouts and visualizations before connecting real data
- Demonstrations: Show dashboard capabilities without exposing production data
- Learning: Experiment with Grafana features using predictable data patterns
- Alerting tests: Generate specific patterns to test alert conditions



