You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A workaround is to use $__interval_ms instead of $interval. For example:
(intDiv(toFloat64("_time") * 1000, $__interval_ms) * $__interval_ms) AS t,
Adding support for $interval to be < 1 would be handy but it might have some side-effects I didn't check for. Thus it may make more sense to change the $timeSeries to use $__interval_ms here:
It seems that it's not possible to have sub-second precision on graphs. This looks like it's due to a hard limit of 1 second for the
$timeSeries
macro:https://github.com/Vertamedia/clickhouse-grafana/blob/2f2d2e164848ac0c54d745ab8d7ec301dc2c948a/src/sql_query.ts#L530-L532
A workaround is to use
$__interval_ms
instead of$interval
. For example:Adding support for
$interval
to be < 1 would be handy but it might have some side-effects I didn't check for. Thus it may make more sense to change the$timeSeries
to use$__interval_ms
here:https://github.com/Vertamedia/clickhouse-grafana/blob/2f2d2e164848ac0c54d745ab8d7ec301dc2c948a/src/sql_query.ts#L467
The text was updated successfully, but these errors were encountered: