Commit fef80491 authored by rpereira2's avatar rpereira2

Add documentation for __range variable

parent 460e72c2
...@@ -209,10 +209,19 @@ GitLab supports a limited set of [CI variables](../../../ci/variables/README.md) ...@@ -209,10 +209,19 @@ GitLab supports a limited set of [CI variables](../../../ci/variables/README.md)
- `ci_project_namespace` - `ci_project_namespace`
- `ci_project_path` - `ci_project_path`
- `ci_environment_name` - `ci_environment_name`
- `__range`
NOTE: **Note:** NOTE: **Note:**
Variables for Prometheus queries must be lowercase. Variables for Prometheus queries must be lowercase.
###### __range
The `__range` variable is useful in Prometheus
[range vector selectors](https://prometheus.io/docs/prometheus/latest/querying/basics/#range-vector-selectors).
Its value is the total number of seconds in the dashboard's time range.
For example, if the dashboard time range is set to 8 hours, the value of
`__range` is `28800s`.
##### User-defined variables ##### User-defined variables
[Variables can be defined](#templating-templating-properties) in a custom dashboard YAML file. [Variables can be defined](#templating-templating-properties) in a custom dashboard YAML file.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment