mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 15:45:43 -06:00
Docs: Add $__rate_interval variable to global variables (#36378)
* Add variable documentation to global variables * Update docs/sources/variables/variable-types/global-variables.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
parent
2fd7031102
commit
0ca6fdd310
@ -72,6 +72,10 @@ This variable is the ID of the current organization.
|
||||
|
||||
Currently only supported for Prometheus data sources. This variable represents the range for the current dashboard. It is calculated by `to - from`. It has a millisecond and a second representation called `$__range_ms` and `$__range_s`.
|
||||
|
||||
## $__rate_interval
|
||||
|
||||
Currently only supported for Prometheus data sources. The `$__rate_interval` variable is meant to be used in the rate function. Refer to [Prometheus query variables]({{< relref "../datasources/prometheus.md">}}) for details.
|
||||
|
||||
## $timeFilter or $__timeFilter
|
||||
|
||||
The `$timeFilter` variable returns the currently selected time range as an expression. For example, the time range interval `Last 7 days` expression is `time > now() - 7d`.
|
||||
|
Loading…
Reference in New Issue
Block a user