grafana / grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
https://grafana.com
GNU Affero General Public License v3.0
65.23k stars 12.17k forks source link

Support subsecond resolutions in range selector #50000

Open sakjur opened 2 years ago

sakjur commented 2 years ago

Why do we need this?

With Grafana becoming more generally useful than just an observability visualization tool, the usecases where there is a legitimate need for subsecond range selection increases (such as electrical engineering, nuclear physics, rocketry).

What needs to be done?

Related comments from #44707:

Finally tested this and everything seems to work fine. I wonder if we should also make the range selector take less than 1s time diff as this does not work now Screenshot from 2022-05-02 14-17-23

But that can be left for different PR.

We have both a backend and frontend implementation of the range selector, we should make sure that both gets updated when doing this 🙂 I can probably help out with the backend if someone decides to pick this up for the frontend. On the backend side we're using https://github.com/vectordotdev/go-datemath through the legacydata (🙃) package and it wouldn't be too hard to add support for millisecond precision in the upstream package as well as long as we remember it.

Originally posted by @sakjur in https://github.com/grafana/grafana/issues/44707#issuecomment-1115085958

alexanderzobnin commented 2 years ago

@sakjur bingo! 50000! So we should fix this asap :smile:

sakjur commented 2 years ago

💪 I know, right!

FZambia commented 2 years ago

Oh no, I just came from mine which was 50001 😄

github-actions[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

gabor commented 9 months ago

it's still relevant.