Grafana: global variables to access [from,to] values of the time range
问题 I am doing some tests with a MySQL data-source and make use of the timefilter inside the SQL query: // my query goes here... WHERE $__timeFilter(time_start); which generates something like the following: WHERE time_start >= FROM_UNIXTIME(1505207821) AND time_start <= FROM_UNIXTIME(1505229421); Are there any variables that can give me access to the 2 timestamps that define the time range? For instance, at the example above: from = 1505207821 to = 1505229421 回答1: Yes, $__timeFrom() and $_