From 0ca6fdd310949989f3967ea6c115e033f964f009 Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Fri, 2 Jul 2021 10:14:41 -0400 Subject: [PATCH] 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> --- docs/sources/variables/variable-types/global-variables.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/sources/variables/variable-types/global-variables.md b/docs/sources/variables/variable-types/global-variables.md index c81e27d86a3..1d66bb15ea8 100644 --- a/docs/sources/variables/variable-types/global-variables.md +++ b/docs/sources/variables/variable-types/global-variables.md @@ -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`.