adds section shortcode, adjust topic titles (#55000)

This commit is contained in:
Christopher Moyer 2022-09-09 14:44:19 -05:00 committed by GitHub
parent c776131929
commit b6237a43e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View File

@ -2,11 +2,15 @@
aliases:
- /docs/grafana/latest/variables/
- /docs/grafana/latest/variables/variable-examples/
title: Template variables
title: Variables
weight: 130
---
# Template variables
# Variables
The following topics describe how to add and manage variables in your dashboards:
{{< section >}}
A variable is a placeholder for a value. You can use variables in metric queries and in panel titles. So when you change
the value, using the dropdown at the top of the dashboard, your panel's metric queries will change to reflect the new value.
@ -32,7 +36,7 @@ wmi_system_threads{instance=~"$server"}
Variable values are always synced to the URL using the syntax `var-<varname>=value`.
## Examples of templates and variables
## Examples
Variables are listed in drop-down lists across the top of the screen. Select different variables to see how the visualizations change.

View File

@ -25,15 +25,13 @@ aliases:
- /docs/grafana/latest/variables/formatting-multi-value-variables/
- /docs/grafana/latest/reference/templating/
- /docs/grafana/latest/variables/manage-variable/
title: Add and manage template variables
menuTitle: Add and manage template variables
title: Add and manage variables
menuTitle: Manage variables
weight: 100
keywords:
- grafana
- templating
- documentation
- guide
- template
- variable
- global
- standard
@ -42,7 +40,7 @@ keywords:
- linked
---
# Add and manage template variables
# Add and manage variables
The following table lists the types of variables shipped with Grafana.
@ -58,7 +56,7 @@ The following table lists the types of variables shipped with Grafana.
| Global variables | Built-in variables that can be used in expressions in the query editor. Refer to [Global variables]({{< relref "#global-variables" >}}). |
| Chained variables | Variable queries can contain other variables. Refer to [Chained variables]({{< relref "#chained-variables" >}}). |
### Enter General options
## Enter General options
You must enter general options for any type of variable that you create.