Hello,
I’m now upgrading the InfluxDB to 2.0.8 version and learning the new UI and Flux language. When I made a query, I found the InfluxDB 2.0 UI doesn’t auto-scale x-axis to real data as what it used to be in the older UI (chronograf).
For example, suppose I have some data in 2018, and I want to quickly query and display the data. When I use chronograf in InfluxDB 1.8, I just execute:
SELECT * FROM test
Then the x-axis auto zoom to where data points exist, regardless of the window start and end time. That makes sense, because you need to first know where is the data, then set the window range after that. The result was as follows:
However, in InfluxDB 2.0 UI, when I make a query, the x-axis doesn’t auto-zoom to real data, but display in a very large time range with no data at all. See the below picture, note the real data is squeezed at the leftmost of the chart. Then I have to drag my mouse several (more than 5) times to zoom into the data.
from(bucket: “mybucket”)
|> range(start: 2000-01-01T00:00:00Z, stop:2020-01-01T00:00:00Z)
|> filter(fn: (r) => r[“_measurement”] == “test”)
I tried if I can query without a time range as I did before, but was unlucky:
from(bucket: “mybucket”)
|> filter(fn: (r) => r[“_measurement”] == “test”)
So my question is:
(1) How does InfluxDB 2.0 UI auto-zoom to the range of real data points exist?
(2) Related to the first question, if I drag mouse to zoom in the display window, can this UI auto-zoom to where real data points exist? This way I don’t need to drag 5+ times just to zoom to the second level.
(3) Is it possible I can make a query without setting time range as in fluxQL, something like SELECT * FROM test
?
(4) Are there any convenient shortcut I could use to achieve the previous auto-zoom as a walk-around?
Any advice is helpful. Thanks a lot!