Menu
Grafana Cloud
Enterprise
Open source
Built-in variables
Grafana has built-in variables that you can use in expressions in the query editor.
These variables are globally-scoped so you can use them in any dashboard.
This page lists them in alphabetical order and defines them.
Most variables are useful in queries, dashboard links, panel links, and data links—but some, like $__url_time_range, are only intended for use in links, not query editors.
$__dashboard
This variable is the name of the current dashboard.
$__from and $__to
Grafana has built-in time range variables: $__from and $__to.
They’re always interpolated as epoch milliseconds by default, but you can control date formatting.