mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 00:52:16 +08:00

* Update global-variables.md * Create _index.md * Create add-query-variable.md * added variable task files * Update templates-and-variables.md * added content * content edits * Update formatting-multi-value-variables.md * added content and updated menu * Update add-query-variable.md * applied edits * Update docs/sources/variables/formatting-multi-value-variables.md Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> * Update docs/sources/variables/formatting-multi-value-variables.md Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> * Update docs/sources/variables/formatting-multi-value-variables.md Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> * applied edits * Update docs/sources/variables/filter-variables-with-regex.md Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> * Update docs/sources/variables/formatting-multi-value-variables.md Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> * Update docs/sources/variables/formatting-multi-value-variables.md Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> * Update formatting-multi-value-variables.md Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
807 B
807 B
+++ title = "Add an interval variable" type = "docs" [menu.docs] weight = 500 draft = "true" +++
Add an interval variable
Note: This is a draft topic, not included in the live build.
Use the Interval
type to create a variable that represents a time span (eg. 1m
,1h
, 1d
). There is also a special auto
option that will change depending on the current time range. You can specify how many times the current time range should be divided to calculate the current auto
timespan.
This variable type is useful as a parameter to group by time (for InfluxDB), Date histogram interval (for Elasticsearch) or as a summarize function parameter (for Graphite).
Example using the template variable myinterval
of type Interval
in a graphite function:
summarize($myinterval, sum, false)