$timeColumn < $from AND $timeColumn > $to". |
34 | | $from | This is replaced to "from" word of the time range for panels, and this is casted as "TYPE" from [TIME : TYPE] in query editor. |
35 | | $to | This is replaced to "to" of the time range for panels, and this is casted as "TYPE" from [TIME : TYPE] in query editor.|
36 | | $unixFrom | This is replaced to "from" of the time range for panels, and this is casted as number of unix timestamp. |
37 | | $unixTo | This is replaced to "to" of the time range for panels, and this is casted as number of unix timestamp. |
38 | | $timeFrom | This is replaced to "from" of the time range for panels, and this is casted as timestamp. |
39 | | $timeTo | This is replaced to "to" of the time range for panels, and this is casted as timestamp. |
40 | | $dateFrom | This is replaced to "from" of the time range for panels, and this is casted as date. |
41 | | $dateTo | This is replaced to "to" of the time range for panels, and this is casted as date. |
42 |
43 | ### 3. Templating
44 |
45 | You can create a template variable in Grafana and have that variable filled with values from any SQL Database metric exploration query. Then, You can use this variable in your SQL Database metric queries.
46 |
47 | (Defining a template)