-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfluxDB Flux query to display data #37
Comments
This comment might be helpful to you: #3 (comment) . I don't have any experience with Flux queries so I don't have any direct advice, sorry. If you end up figuring it out, let me know and I'll add an example to the readme for others. |
I'm using a query as below, which works great:
|
I have tried the above query, but it doesn't render anything. Any pointers what could be the issue? Or any updates about the support for flux. |
Note that my query is rather specific to the way my Influx data is structured, so it should be viewed as an example only |
Ofcourse I modified it to my needs. But I have a very simple dataset I use for this. It has 2 fields (latitude and longitude) and 2 tags (geohash and source) within one measurement (position). So your query (changing bucket and measurement) for this should work right? |
I'm not sure what might be the reason - just shared my example in case it might be helpful for some. I have it working just fine with Flux on latest Grafana and using InfluxDB 1.8 or InfluxDB 2.0 (cloud starter) editions. |
@etwobben The two queries I posted in my initial question actually ended up working. The "set" function was only required to change the name of the columns from lat -> latitude, etc. Try using two separate queries for lat and lon. |
How to show this in a map on InfluxDB 2.0? |
You can see an example in our playground (see the maps queries): Done using Flux query language in InfluxDB 2.0 cloud version. |
@MatinF Can I see the code? (no confidential data) |
Hi again, The query code is available if you click the maps panel. Not sure what other code you're looking for? best, |
Hi there! I have more or less a similar problem. The "lat" and "lon" is in one field as a string and I split this with my Influx query. The result seems OK but the map is showing nothing neither an error message. Here is my query: The data / result: Any thoughts? Thanks in advance! |
This worked great for me thanks! I'm pulling in data using telegraf / starlark parsing of JSON files. So my measurements looks like this |
If anyone is working with the sample data provided by Influx, I had to
|
THIS WORKS: from(bucket: "ANDROMAXA") HOWEVER, THE POINTER NOT. I navigate in the other grafs but the pointer is not appearing and not movin through the track.. Anyone knows why? |
I am trying to display a geo track using this plugin. My InfluxDB data is stored on InfluxDB 2.0 and I am querying using a Flux query in Grafana. My data contains a
lat
andlon
field. What is the proper way of displaying this data on this plugin map?I have tried many different queries and transformations, I am currently using this, which still doesn't display any data.
Query A:
Query B:
This results in a Grafana data table with columns
Time
,latitude
, andlongitude
.The text was updated successfully, but these errors were encountered: