-
Notifications
You must be signed in to change notification settings - Fork 25
InfluxDB 2.0 (Flux) #47
Comments
No sorry, this is not something we have used (yet) :-) |
ok, no problem, I'll figure it out and will leave a sample here for others to see. If you could leave this open and maybe assign it to me...? |
I have figured it out over the week-end. In fact I found multiple ways of doing it. This one is the most concise one, that works:
The only problem with it is that in the tooltip (hover over) it shows the time in epoch format. Is there a way to format it to a more civilized way? :) |
I raised #52 in regard to the inability to display readable time using InfluxDB 1.8 and InfluxQL. I couldn't even get the readable timestamp in the popup field. So I tried again using Flux, and again I couldn't get the readable popup timestamp, which I therefore suppose requires using InfluxDB 2.0. However I was able to fix the issue using the following query:
This substantially slows data retrieval, due to all the string formatting code - if you are not bothered about the leading zeroes it runs much faster. Maybe someone more knowledgeable knows a more efficient method. |
This is substantially faster:
|
Awesome, thanks for it, @steve-burke , it works like a charm! I don't notice any significant loss in speed. However, the proper solution would be if the component supported it. |
I agree @viktak, although this issue and your post have resulted in my learning about Flux, which was interesting. |
Still learning... The following is more efficient. However, none of these solutions display local time; they all show UTC. I can't find a way of fixing this in Flux.
|
Still loving this plugin! :)
I just migrated my setup to InfluxDB 2.0, which is using Flux as the query language. I am completely new to this, and was wondering if you have an example query (for this plugin) I could use as a starting point.
thank you
The text was updated successfully, but these errors were encountered: