Add a dashboard variable
Grafana dashboard variables let you create dynamic and interactive views of your tracing data. Instead of having a static dashboard that always shows the same information, variables let you filter, drill down, and explore your traces without having to manually edit queries or create multiple dashboards.
Dashboard variables transform your traces dashboards from static reports into powerful, interactive investigative tools, significantly improving your ability to understand, monitor, and troubleshoot distributed systems.
In this milestone, you’ll add a dashboard variable that allows you to filter and explore trace spans based on specific trace IDs.
To add a dashboard variable, complete the following steps:
On the dashboard, click Edit.
Click Add variable.
From the Variable type drop-down list, select
Custom.In the Name field of the Custom variable modal, enter
traceId.In the Label field, enter
Trace ID.Trace IDappears above the panel.
In the next milestone, you’ll add a traces panel that populates with trace details.
