Shipment latency / Edit panel
Last 6 hours
Query 1
Transform
kestrel-prod
Interval = 6h
A
SELECT
    toUnixTimestamp(toStartOfInterval(ts, $interval)) AS t,
    count()
FROM $table

WHERE
    ts BETWEEN toDateTime64($from, 3)
    AND toDateTime64($to, 3)
GROUP BY t

ORDER BY t
FROM shipments