Hi,
I am new to InfluxDB Flux, cannot figure out how to efficiently read the very last (current) values from the database. The values in my use case are written only if they change relative to the previously written value. So if for some variable value is not changed for a long time, then it would be out of display range (the query can be from Grafana or Chronograf, in both cases, it will have a range). And as a result, GUI widget (for example, gauge) will show that no data is available.
If in the same dashboard to put widgets to display both current values ( in gauges) and history (in graphs), then I cannot select a wider range to include last changed value for a not changing variable. Because then it would take longer to process, and then history graphs would display data for time range which is out of interesting display range.
I looked at selectors like top or bottom, or last, but they must be used anyway with range option.
Is there any solution for this? Or I have to make sure that data values are written with some interval (minimum display interval?) even if they do not change?
Thank you, Ravil