{{ctrl.lastGenerateSQL}}
Use any SQL that can return Resultset such as:
- [[timestamp1, value1], [timestamp2, value2], ... ]
Macros:
- $from -> start timestamp of panel
- $to -> stop timestamp of panel
- $interval -> interval of panel
Example of SQL:
SELECT count(*)
FROM db.table
WHERE ts > $from and ts < $to
INTERVAL ($interval)
{{ctrl.lastQueryError}}