mirror of https://github.com/grafana/grafana
Docs: Organize variables (#26738)
* Moved files to folder and updated links * fixed links * Update _index.md * Update templates-and-variables.mdpull/26779/head
parent
0e3b4e8ccc
commit
0706ec5d00
@ -0,0 +1,23 @@ |
|||||||
|
+++ |
||||||
|
title = "Variables types" |
||||||
|
type = "docs" |
||||||
|
[menu.docs] |
||||||
|
weight = 300 |
||||||
|
+++ |
||||||
|
|
||||||
|
# Variables types |
||||||
|
|
||||||
|
Grafana uses several types of variables. |
||||||
|
|
||||||
|
| Variable type | Description | |
||||||
|
|:---|:---| |
||||||
|
| Query | Query-generated list of values such as metric names, server names, sensor IDs, data centers, and so on. [Add a query variable]({{< relref "add-query-variable.md" >}}). | |
||||||
|
| Custom | Define the variable options manually using a comma-separated list. [Add a custom variable]({{< relref "add-custom-variable.md" >}}). | |
||||||
|
| Text box | Display a free text input field with an optional default value. [Add a text box variable]({{< relref "add-text-box-variable.md" >}}). | |
||||||
|
| Constant | Define a hidden constant. [Add a constant variable]({{< relref "add-constant-variable.md" >}}). | |
||||||
|
| Data source | Quickly change the data source for an entire dashboard. [Add a data source variable]({{< relref "add-data-source-variable.md" >}}). | |
||||||
|
| Interval | Interval variables represent time spans. [Add an interval variable]({{< relref "add-interval-variable.md" >}}). | |
||||||
|
| Ad hoc filters | Key/value filters that are automatically added to all metric queries for a data source (InfluxDB, Prometheus, and Elasticsearch only). [Add ad hoc filters]({{< relref "add-ad-hoc-filters.md" >}}). | |
||||||
|
| 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.md" >}}). | |
||||||
|
| URL variables | You can use variables in data links to link to specific portions of your visualizations. Refer to [Data links]({{< relref "../../linking/data-links.md" >}}). | |
||||||
@ -1,6 +1,7 @@ |
|||||||
+++ |
+++ |
||||||
title = "Add an interval variable" |
title = "Add an interval variable" |
||||||
type = "docs" |
type = "docs" |
||||||
|
aliases = ["/docs/grafana/latest/variables/add-interval-variable.md"] |
||||||
[menu.docs] |
[menu.docs] |
||||||
weight = 500 |
weight = 500 |
||||||
+++ |
+++ |
||||||
@ -1,6 +1,7 @@ |
|||||||
+++ |
+++ |
||||||
title = "Add a text box variable" |
title = "Add a text box variable" |
||||||
type = "docs" |
type = "docs" |
||||||
|
aliases = ["/docs/grafana/latest/variables/add-text-box-variable.md"] |
||||||
[menu.docs] |
[menu.docs] |
||||||
weight = 500 |
weight = 500 |
||||||
+++ |
+++ |
||||||
@ -1,12 +1,13 @@ |
|||||||
+++ |
+++ |
||||||
title = "URL variables" |
title = "URL variables" |
||||||
keywords = ["grafana", "url variables", "documentation", "variables"] |
keywords = ["grafana", "url variables", "documentation", "variables"] |
||||||
|
aliases = ["/docs/grafana/latest/variables/url-variables.md"] |
||||||
type = "docs" |
type = "docs" |
||||||
+++ |
+++ |
||||||
|
|
||||||
# URL variables |
# URL variables |
||||||
|
|
||||||
You can use variables in data links to link to specific portions of your visualizations. For more information about data links, refer to [Data links]({{< relref "../linking/data-links.md" >}}). |
You can use variables in data links to link to specific portions of your visualizations. For more information about data links, refer to [Data links]({{< relref "../../linking/data-links.md" >}}). |
||||||
|
|
||||||
> **Note:** These variables changed in 6.4 so if you have an older version of Grafana please use the version picker to select |
> **Note:** These variables changed in 6.4 so if you have an older version of Grafana please use the version picker to select |
||||||
docs for an older version of Grafana. |
docs for an older version of Grafana. |
||||||
Loading…
Reference in new issue