mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:06:33 +08:00
PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616)
* Format md,mdx files with prettier on lint-staged * Manually run prettier on docs/sources
This commit is contained in:
@ -27,4 +27,3 @@ You can control the time range of a panel or dashboard by providing following qu
|
||||
- `from` - defines lower limit of the time range, specified in ms epoch
|
||||
- `to` - defines upper limit of the time range, specified in ms epoch
|
||||
- `time` and `time.window` - defines a time range from `time-time.window/2` to `time+time.window/2`. Both params should be specified in ms. For example `?time=1500000000000&time.window=10000` will result in 10s time range from 1499999995000 to 1500000005000
|
||||
|
||||
|
@ -12,6 +12,7 @@ When you create a dashboard link, you can include the time range and current tem
|
||||
Dashboard links can also be used as shortcuts to external systems, such as submitting [a GitHub issue with the current dashboard name](https://github.com/grafana/grafana/issues/new?title=Dashboard%3A%20HTTP%20Requests).
|
||||
|
||||
To see an example of dashboard links in action, check out:
|
||||
|
||||
- [Dashboard links with variables](https://play.grafana.org/d/rUpVRdamz/dashboard-links-with-variables?orgId=1)
|
||||
- [Prometheus repeat](https://play.grafana.org/d/000000036/prometheus-repeat?orgId=1)
|
||||
|
||||
|
@ -19,36 +19,36 @@ You can also use template variables in your data links URLs, refer to [Templates
|
||||
|
||||
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``)
|
||||
- `__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.md#__from-and-__to" >}}).
|
||||
|
||||
## Series variables
|
||||
|
||||
Series specific variables are available under ``__series`` namespace:
|
||||
Series specific variables are available under `__series` namespace:
|
||||
|
||||
- ``__series.name`` - series name to the URL
|
||||
- `__series.name` - series name to the URL
|
||||
|
||||
## Field variables
|
||||
|
||||
Field-specific variables are available under ``__field`` namespace:
|
||||
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.
|
||||
- `__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-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
|
||||
- `__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.
|
||||
`${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``.
|
||||
If you want to add all of the current dashboard's variables to the URL, then use `__all_variables`.
|
||||
|
@ -28,4 +28,4 @@ You can control the time range of a panel or dashboard by providing following qu
|
||||
|
||||
- `from` - defines lower limit of the time range, specified in ms epoch
|
||||
- `to` - defines upper limit of the time range, specified in ms epoch
|
||||
- `time` and `time.window` - defines a time range from `time-time.window/2` to `time+time.window/2`. Both params should be specified in ms. For example `?time=1500000000000&time.window=10000` will result in 10s time range from 1499999995000 to 1500000005000
|
||||
- `time` and `time.window` - defines a time range from `time-time.window/2` to `time+time.window/2`. Both params should be specified in ms. For example `?time=1500000000000&time.window=10000` will result in 10s time range from 1499999995000 to 1500000005000
|
||||
|
Reference in New Issue
Block a user