瀏覽代碼

Add docs about global variables in query template variables

Tobias Skarhed 7 年之前
父節點
當前提交
816ee82d26
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/sources/features/datasources/prometheus.md

+ 3 - 0
docs/sources/features/datasources/prometheus.md

@@ -75,6 +75,9 @@ Name | Description
 
 
 For details of *metric names*, *label names* and *label values* are please refer to the [Prometheus documentation](http://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
 For details of *metric names*, *label names* and *label values* are please refer to the [Prometheus documentation](http://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
 
 
+
+It is possible to use some global template variables in Prometheus query template variables; `$__interval`, `$__interval_ms`, `$__range` and `$__range_ms`, where `$__range` is the dashboard's current time range and `$__range_ms` is the current range in milliseconds.
+
 ### Using variables in queries
 ### Using variables in queries
 
 
 There are two syntaxes:
 There are two syntaxes: