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
When I query the time field that includes nanoseconds (e.g. time DateTime64(9)), the data points gets cropped (in time) to the nearest millisecond, losing the information of microseconds & nanoseconds. But these data are important to me and I want to visualize the actual series of events how it happened during that one millisecond.
What you expected to happen:
To visualize the data points in time as they happened, without cropping the micros & nanos.
How to reproduce it (as minimally and precisely as possible):
Create table:
CREATE TABLE nanos (
time DateTime64(9),
value UInt32
) ENGINE = MergeTree
ORDER BY time;
Fill it with some nanosecond data throughout 3 milliseconds:
INSERT INTO nanos SELECT
now() + INTERVAL (number * 111111) NANOSECOND,
number
FROM numbers(30);
I believe this is a limitation of Grafana. The data is actually returned with nanoseconds to the browser (you can see the nanos field in the query inspector), but it will not be displayed on most panels. Internally it gets converted to a JavaScript Date, and those are limited to milliseconds. The same goes for the dashboard time range, so you cant even filter time ranges less than 1ms apart.
You might be able to find a workaround by converting the time to Unix nanos, and then instead of using a time chart just use a number chart, but filtering will be difficult. Keep in mind you might also need to scale the number to fit within JavaScript's number limit to prevent rounding issues.
What happened:
When I query the time field that includes nanoseconds (e.g.
time DateTime64(9)
), the data points gets cropped (in time) to the nearest millisecond, losing the information of microseconds & nanoseconds. But these data are important to me and I want to visualize the actual series of events how it happened during that one millisecond.What you expected to happen:
To visualize the data points in time as they happened, without cropping the micros & nanos.
How to reproduce it (as minimally and precisely as possible):
Create table:
Fill it with some nanosecond data throughout 3 milliseconds:
What we'll get:
Screenshots
Anything else we need to know?:
🤷
Environment:
The text was updated successfully, but these errors were encountered: