mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Added doc content for variables inspector code change by Hugo (#30408)
* Created the Inspect variables topic. * Check in changes. * Added relrefs. * Added Hugh's suggestion.
This commit is contained in:
parent
b824be90e7
commit
3cf47b24d3
22
docs/sources/variables/inspect-variable.md
Normal file
22
docs/sources/variables/inspect-variable.md
Normal file
@ -0,0 +1,22 @@
|
||||
+++
|
||||
title = "Inspect variables"
|
||||
keywords = ["grafana", "templating", "documentation", "guide", "template", "variable"]
|
||||
aliases = ["/docs/grafana/latest/reference/templating"]
|
||||
weight = 125
|
||||
+++
|
||||
|
||||
# Inspect variables and their dependencies
|
||||
|
||||
The variables page lets you easily identify whether a variable is being referenced (or used) in other variables or dashboard. In addition, you can also [add]({{< relref "variable-types/_index.md" >}}) variables and [manage]({{< relref "manage-variable.md" >}}) existing variables from this page.
|
||||
|
||||
> **Note:** This feature is available in Grafana 7.4 and later versions.
|
||||
|
||||
![Variables list](/img/docs/variables-templates/variables-list-7-4.png)
|
||||
|
||||
Any variable that is referenced or used has a green check mark next to it, while unreferenced variables have a orange caution icon next to them.
|
||||
|
||||
![Variables list](/img/docs/variables-templates/variable-not-referenced-7-4.png)
|
||||
|
||||
In addition, all referenced variables have a dependency icon next to the green check mark. You can click on the icon to view the dependency map. The dependency map can be moved. You can zoom in out with mouse wheel or track pad equivalent.
|
||||
|
||||
![Variables list](/img/docs/variables-templates/dependancy-map-7-4.png)
|
22
docs/sources/variables/manage-variable.md
Normal file
22
docs/sources/variables/manage-variable.md
Normal file
@ -0,0 +1,22 @@
|
||||
+++
|
||||
title = "Manage variables"
|
||||
keywords = ["grafana", "templating", "documentation", "guide", "template", "variable"]
|
||||
aliases = ["/docs/grafana/latest/reference/templating"]
|
||||
weight = 120
|
||||
+++
|
||||
|
||||
# Manage variables
|
||||
|
||||
The variables page lets you [add]({{< relref "variable-types/_index.md" >}}) variables and manage existing variables. It also allows you to [inspect]({{< relref "inspect-variable.md" >}}) variables and identify whether a variable is being referenced (or used) in other variables or dashboard.
|
||||
|
||||
## Move
|
||||
|
||||
You can move a variable up or down the list using the up and down arrows respectively.
|
||||
|
||||
## Clone
|
||||
|
||||
To clone a variable, click the clone icon from the set of icons on the right. This creates a copy of the variable with the name of the original variable prefixed with `copy_of_`.
|
||||
|
||||
## Delete
|
||||
|
||||
To delete a variable, click the trash icon from the set of icons on the right.
|
Loading…
Reference in New Issue
Block a user