chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Support for millisecond queries

Open nhaugo opened this issue 9 years ago • 12 comments

nhaugo avatar May 09 '17 17:05 nhaugo

I was the guy who asked on the webinar and I would like to extend my question a bit:

Something Grafana and Chronograf as of today are not able to do is display timeseries plots with timestamps of nano- or microseconds.

This seems to be related to Javascript not supporting 64bit timestamps, but maybe you engineering guys come up with some clever tricks to avoid that?

As I want to plot scientific data measured at a few MS/s and let the scientists quickly view things in dashboards / ..., it would be a great relief to have this feature available. :-)

poikilotherm avatar May 09 '17 17:05 poikilotherm

Hi @poikilotherm, just did a bit of research on this and we could definitely do it.

InfluxDB can return RFC3339 with nanosecond precision.

We'd need to update our front-end parsing in a few places like https://github.com/influxdata/chronograf/blob/8ad883906379c54f59b74dbf69c1714cadf46142/ui/src/utils/timeSeriesToDygraph.js#L158 ... and our backend server here: https://github.com/influxdata/chronograf/blob/master/influx/influx.go#L87

goller avatar May 15 '17 04:05 goller

With a touch of Star Wars: that seem to be the droid you are looking for... 👍

poikilotherm avatar May 15 '17 08:05 poikilotherm

If dygraphs 2.0 does not support auto x-axis relabeling spin out another issue

nhaugo avatar May 15 '17 18:05 nhaugo

#1470 and #1471 are now prerequisites for this issue

jaredscheib avatar May 15 '17 18:05 jaredscheib

Looks like the prerequisites for this are complete

nhaugo avatar Aug 08 '17 01:08 nhaugo

We're going to do some requirements gathering and then potentially break this out into multiple stories

lukevmorris avatar Aug 15 '17 16:08 lukevmorris

Side note: in the community influxdb Node client they have implemented nanosecond-based Dates: https://github.com/node-influx/node-influx/blob/master/src/doc.ts. Looks like there may be some useful stuff there to glean or at least for reference.

jaredscheib avatar Aug 18 '17 23:08 jaredscheib

• The math for interval selection needs to support values less than one • Dygraph will need updating to support display less than one second

nhaugo avatar Sep 20 '17 17:09 nhaugo

This feature would definitely be of interest to me. I have an urgent need to display waveforms for electricity. I'm happily loading 6000-7000 samples per second into Influx at nanosecond resolution, but right now i have no way to display them.

relihanl avatar Sep 21 '17 15:09 relihanl

@relihanl we are starting with milliseconds, both micro and nano seconds produce new sets of challenges on the frontend. Hopefully micro second resolution won't be far behind, but nanosecond might prove more challenging.

nhaugo avatar Oct 11 '17 20:10 nhaugo

Thanks for the update Nathan. Appreciate the work you are doing on this.

L

On 11 Oct 2017 21:24, "Nathan Haugo" [email protected] wrote:

@relihanl https://github.com/relihanl we are starting with milliseconds, both micro and nano seconds produce new sets of challenges on the frontend. Hopefully micro second resolution won't be far behind, but nanosecond might prove more challenging.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/influxdata/chronograf/issues/1449#issuecomment-335936805, or mute the thread https://github.com/notifications/unsubscribe-auth/AGM3SxeKvvGVBfn0PP-A4oc1Fw6Pl6cJks5srSQIgaJpZM4NVoDx .

relihanl avatar Oct 12 '17 18:10 relihanl