@@ -24,23 +24,24 @@ one by selecting `+ New Dashboard` from the Dashboard menu in the left panel.
2424Once within the panel editor, select your Haystack data source in the Data Sources menu. Next, select the type of
2525Haystack query that should be performed. The supported queries are:
2626
27- - Eval: Evaluate a free-form Axon expression. Grafana variables may be injected into the query, with the supported
28- variables listed below. * Note: Not all Haystack servers support this functionality*
27+ - Eval: Evaluate a free-form Axon expression. * Note: Not all Haystack servers support this functionality*
2928- HisRead: Display the history of a single point over the selected time range.
3029- Read: Display the records matching a filter. Since this is not timeseries data, it can only be viewed in Grafana's
3130"Table" view.
3231
3332#### Variables
3433
35- Some queries support injecting values from the Grafana UI. The following variables are supported:
34+ Grafana template variables can be injected into queries using the ordinary syntax, e.g. ` $varName ` .
35+
36+ We also support injecting a few special variables from the time-range selector into the Eval and Read requests:
3637
3738- ` $__timeRange_start ` : DateTime start of the selected Grafana time range
3839- ` $__timeRange_end ` : DateTime end of the selected Grafana time range
3940- ` $__maxDataPoints ` : Number representing the pixel width of Grafana's display panel.
4041- ` $__interval ` : Number representing Grafana's recommended data interval. This is the duration of the time range,
4142divided by the number of pixels, delivered in units of minutes.
4243
43- To use them, simply use the value in the input string. Below is an example of using the variables in an Eval query:
44+ To use them, simply enter the value in the input string. Below is an example of using the variables in an Eval query:
4445
4546```
4647> [{ts: $__timeRange_start, v0: 0}, {ts: $__timeRange_end, v0: 10}].toGrid
0 commit comments