
* builds out refactored setup topics * Automatically fix some relrefs with mv-manager Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Use refs for tutorials content which is outside of this repository Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Manually fix complicated relrefs Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * consolidates team sync and db encryption topics * Fix relrefs Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * updates setup index file * Convert TOML to YAML Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Add current alias for new alerting content Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Add current aliases to new setup-grafana and configure-security pages Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/setup-grafana/configure-grafana/_index.md Co-authored-by: Torkel Ödegaard <torkel@grafana.com> * moves saml docs, updates order in TOC * Manually fix relrefs Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * added usage insights topics, adjusted weights * corrected relrefs * Fix relrefs broken in rebase Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2.4 KiB
aliases | keywords | title | weight | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
URL variables | 400 |
Data link variables
You can use variables in data links to refer to series fields, labels, and values. For more information about data links, refer to [Data links]({{< relref "data-links/" >}}).
To see a list of available variables, type $
in the data link URL field to see a list of variables that you can use.
Note: These variables changed in 6.4 so if you have an older version of Grafana, then use the version picker to select docs for an older version of Grafana.
You can also use template variables in your data links URLs, refer to [Templates and variables]({{< relref "../variables/" >}}) for more information on template variables.
Time range panel variables
These variables allow you to include the current time range in the data link URL.
__url_time_range
- current dashboard's time range (i.e.?from=now-6h&to=now
)$__from and $__to
- For more information, refer to [Global variables]({{< relref "../variables/variable-types/global-variables/#__from-and-__to" >}}).
Series variables
Series specific variables are available under __series
namespace:
__series.name
- series name to the URL
Field variables
Field-specific variables are available under __field
namespace:
__field.name
- the name of the field__field.labels.<LABEL>
- label's value to the URL. If your label contains dots, then use__field.labels["<LABEL>"]
syntax.
Value variables
Value-specific variables are available under __value
namespace:
__value.time
- value's timestamp (Unix ms epoch) to the URL (i.e.?time=1560268814105
)__value.raw
- raw value__value.numeric
- numeric representation of a value__value.text
- text representation of a value__value.calc
- calculation name if the value is result of calculation
Template variables
When linking to another dashboard that uses template variables, select variable values for whoever clicks the link.
${myvar:queryparams}
- where myvar
is a name of the template variable that matches one in the current dashboard that you want to use.
If you want to add all of the current dashboard's variables to the URL, then use __all_variables
.