For time-series visualization it can be very important that windows of missing values are returned in the result even if they are not in the table itself.
For Postgres (and other SQL) databases this is achieved with the $__timeGroup and $__unixEpochGroup macro.
See here: https://grafana.com/docs/grafana/latest/datasources/postgres/#macros.
For time-series visualization it can be very important that windows of missing values are returned in the result even if they are not in the table itself. For Postgres (and other SQL) databases this is achieved with the
$__timeGroup
and$__unixEpochGroup
macro. See here: https://grafana.com/docs/grafana/latest/datasources/postgres/#macros.This macro does two things:
While the first feature of the macro is easy to replicate with SQL the second one is not. It would be cool to have the second one in the plugin.
The final goal is a chart like this:![image](https://user-images.githubusercontent.com/18115758/112750987-c9b2bf80-8fcb-11eb-988d-cf89267cdf3f.png)