🌐
Grafana
grafana.com › docs › grafana › latest › visualizations › dashboards › variables
Variables | Grafana documentation
Global variables: Built-in variables that Grafana provides automatically, such as the current time range, dashboard name, organization, or signed-in user.
🌐
Grafana
grafana.com › docs › grafana › latest › datasources › prometheus › template-variables
Prometheus template variables | Grafana documentation
For more information, refer to Filter and Group by. ... Create a new variable with Type: Filters. Select your Prometheus data source. Save the dashboard. After you add the variable, a filter bar appears at the top of the dashboard. Viewers can add filters by selecting a label, operator (=, !=, =~, !~), and value. Grafana automatically applies these filters to all Prometheus queries on the dashboard.
People also ask

What Are the Most Common Causes of Grafana Variable Errors in Prometheus-Based Dashboards?
Common errors include empty query results, mismatched label names, and broken regex filters. A frequent issue with Prometheus backend queries happens when a variable supports multi-value or 'All' selections but the panel query uses the strict equality operator (=) instead of the regex matcher operator (=~), which causes the query to fail when multiple items are selected.
🌐
groundcover.com
groundcover.com › learn › observability › grafana-variables
Grafana Variables: Types, Use Cases & Best Practices
How Do Grafana Variables Improve Dashboards for Multi-Cluster or Multi-Environment Setups?
Grafana variables allow a single dashboard to dynamically switch between different clusters, environments, namespaces, or data sources without editing panel queries. By using parameterized variables like $environment or $cluster, teams maintain a unified dashboard structure across production, staging, and development instead of maintaining duplicate copies.
🌐
groundcover.com
groundcover.com › learn › observability › grafana-variables
Grafana Variables: Types, Use Cases & Best Practices
How Does groundcover Make Grafana Variables Faster and More Reliable for Large Observability Datasets?
groundcover ensures that the underlying telemetry data across metrics, logs, traces, and events is organized with consistent workload labels. This structured data framework gives Grafana variables precise targets to resolve against. It also optimizes large dropdown selections by prioritizing values relevant to the active context, keeping menus fast and usable even at massive scale.
🌐
groundcover.com
groundcover.com › learn › observability › grafana-variables
Grafana Variables: Types, Use Cases & Best Practices
🌐
Grafana
grafana.com › blog › grafana-variables-what-they-are-and-how-they-create-dynamic-dashboards
Grafana variables: what they are and how they create dynamic dashboards | Grafana Labs
October 31, 2024 - There are two main types of variables in Grafana: global variables and user-defined variables. Global variables are built-in and automatically populated. For example, ${__user} contains the name of the currently logged in user.
🌐
AWS
docs.aws.amazon.com › amazon managed grafana › user guide › use your grafana workspace › working in grafana version 8 › templates and variables › variable types
Variable types - Amazon Managed Grafana
For example, if you have a series of four linked variables (country, region, server, metric) and you change a root variable value (country), the Grafana workspace must run queries for all the dependent variables before it updates the visualizations in the dashboard. Grafana has global built-in ...
🌐
Grafana
grafana.com › docs › grafana › latest › dashboards › variables › add-template-variables
Add variables | Grafana documentation
Create dashboard variables that let viewers filter data, change data sources, set time intervals, and reuse values across queries, titles, and links.
🌐
Grafana
grafana.com › docs › grafana-cloud › learn-and-build › visualizations › dashboards › variables › global-variables
Global variables | Grafana Cloud documentation
Use Grafana built-in global variables to reference dashboard metadata, time ranges, intervals, and user context in queries, links, and panel titles.
🌐
Grafana
grafana.com › variables
Variables | Grafana Scenes
Change the variable value using the selector on top of the scene to see updated data in your visualization. Following, you'll find the complete code of a scene using QueryVariable: ... The variables system supports a variety of built-in macros, which are variable expressions that can be used without the need to include any additional variables.
🌐
AWS
docs.aws.amazon.com › amazon managed grafana › user guide › use your grafana workspace › working in grafana version 9 › dashboards in grafana version 9 › adding and managing dashboard variables › add and manage variables
Add and manage variables - Amazon Managed Grafana
These variables are useful in queries, dashboard links, panel links, and data links. ... This variable is the name of the current dashboard. ... Grafana has two built-in time range variables: $__from and $__to.
Find elsewhere
🌐
Grafana
grafana.com › docs › grafana-cloud › learn-and-build › visualizations › dashboards › variables
Variables | Grafana Cloud documentation
Global variables: Built-in variables that Grafana provides automatically, such as the current time range, dashboard name, organization, or signed-in user.
🌐
Groundcover
groundcover.com › learn › observability › grafana-variables
Grafana Variables: Types, Use Cases & Best Practices
May 24, 2026 - When you zoom from one hour to seven days, Grafana recalculates the built-in time values and rewrites the query again. The panel keeps the same query structure, but the range inside the query changes with the dashboard. In a multi-environment dashboard, the panels stay the same while the selected environment, service, or data source changes. Grafana variables make those selections part of the dashboard, rather than forcing a separate dashboard for each target.
🌐
TigerData
tigerdata.com › blog › grafana-variables-101
Using Grafana Variables to Make Interactive | Tiger Data
December 10, 2025 - Grafana variables can be used to create interactive dashboards by creating a variable as a query, modifying the graph query to use the variable, and setting the dashboard to interactive mode.
🌐
Grafana
grafana.com › docs › grafana › latest › datasources › graphite › template-variables
Graphite template variables | Grafana documentation
Instead of hard-coding details ... you can use variables. Grafana lists these variables in drop-down selection boxes at the top of the dashboard to help you change the data displayed in your dashboard....
🌐
Grafana
grafana.com › docs › grafana › latest › dashboards › variables › variable-syntax
Variable syntax | Grafana documentation
For multi-valued variables it returns the text representation combined with +. ... servers = ["test1", "test2"] String to interpolate: '${servers:text}' Interpolation result: "test1 + test2" ... In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
🌐
YouTube
youtube.com › watch
How to Create and Work with Variables | Grafana - YouTube
Links:Variableshttps://grafana.com/docs/grafana/latest/dashboards/variables/List of Global Variableshttps://grafana.com/docs/grafana/latest/dashboards/variab...
Published: February 15, 2024
🌐
Grafana
grafana.com › docs › grafana-cloud › observe-and-act › connect-externally-hosted › data-sources › prometheus › template-variables
Prometheus template variables | Grafana Cloud documentation
Template variables let you create dynamic, reusable dashboards by replacing hard-coded values (such as server names, namespaces, or job labels) with selectable variables. Grafana displays these variables as dropdown menus at the top of the ...
🌐
Grafana
grafana.com › docs › grafana › latest › datasources › loki › template-variables
Loki template variables | Grafana documentation
Instead of hard-coding details ... you can use variables. Grafana lists these variables in dropdown select boxes at the top of the dashboard to help you change the data displayed in your dashboard....
🌐
GitHub
github.com › grafana › grafana › issues › 13523
Explore: Support for built-in variables like `$__range` · Issue #13523 · grafana/grafana
October 4, 2018 - Explore does not do expansion of Grafana's built-in variables yet. This will be helpful when jumping from dashboards that use queries with variables. Custom dashboard variables must stay expanded though.
Author: grafana
🌐
Last9
last9.io › blog › grafana-variables
Grafana Variables: Dynamic Dashboards Done Right | Last9
December 13, 2024 - Text Box Variables Allow users to input custom values, ideal for advanced filters or regex queries. Data Link Variables Provide contextual links to other dashboards or external resources. Kibana vs Grafana: Key Differences and Use Cases | Last9
🌐
Dataset
support.dataset.com › hc › en-us › articles › 360049829394-Grafana-Variables
Grafana Variables – DataSet Customer Portal
January 11, 2023 - These are useful because they allow you to create more interactive and dynamic dashboards. Instead of hard-coding things like path, cluster, and host names within your dashboard queries, you can utilize defined parameters.