mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Add $__rate_interval_ms to go along with $__interval_ms (#69582)
* Add $__rate_interval_ms to go along with $__interval_ms
Fixes https://github.com/grafana/grafana/issues/69581
* update doc
* PoC add rate_interval_ms as rate range in prometheus
* Revert "PoC add rate_interval_ms as rate range in prometheus"
This reverts commit 7d4ec700d7.
* Update docs/sources/dashboards/variables/add-template-variables/index.md
grammar nit
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
* Update docs/sources/dashboards/variables/add-template-variables/index.md
---------
Co-authored-by: Galen <galen.kistler@grafana.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
This commit is contained in:
@@ -325,6 +325,10 @@ Currently only supported for Prometheus and Loki data sources. This variable rep
|
||||
|
||||
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/template-variables#use-__rate_interval" >}}) for details.
|
||||
|
||||
### $\_\_rate_interval_ms
|
||||
|
||||
This variable is the `$__rate_interval` variable in milliseconds, not a time-interval-formatted string. For example, if the `$__rate_interval` is `20m` then the `$__rate_interval_ms` is `1200000`.
|
||||
|
||||
### $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`.
|
||||
|
||||
Reference in New Issue
Block a user