From 77bb3ddf62faf8103c8ad99c2886b23db4f8b3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 29 Jan 2019 20:53:49 +0100 Subject: [PATCH] Added basic docs --- docs/sources/reference/templating.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/sources/reference/templating.md b/docs/sources/reference/templating.md index 3ef32b1b10f..340384b62e5 100644 --- a/docs/sources/reference/templating.md +++ b/docs/sources/reference/templating.md @@ -245,6 +245,11 @@ summarize($myinterval, sum, false) Grafana has global built-in variables that can be used in expressions in the query editor. +### Time range variables + +Grafana has two built in time range variables in `$__from` and `$__to`. They are currently always interpolated +as epoch milliseconds. + ### The $__interval Variable This $__interval variable is similar to the `auto` interval variable that is described above. It can be used as a parameter to group by time (for InfluxDB, MySQL, Postgres, MSSQL), Date histogram interval (for Elasticsearch) or as a *summarize* function parameter (for Graphite).