InfluxDB Timeseries Query Not Working
See original GitHub issueThis may not be a bug or anything, but I am still struggling to write an influxdb query for worldmap in grafana. I am not even sure if I am sending out the right object to influxdb, so I would really appreciate any help. I don’t have a geohash, just longitude and latitude, so the influx example in this guide which is showing table format and using geohash doesn’t help me. Here is my object:
{ "key": "US", "latitude": latitude, "longitude": longitude, "name": "United States" }
And here’s my query:
SELECT count("latitude"), count("longitude") FROM "autogen"."gMap" WHERE $timeFilter GROUP BY time($interval)
gMap is just the measurement in influxdb that I am storing that object in.
The other thing that I am not sure of is in which format do I need to provide my latitude and longitude? Is it just direction+minutes and not direction+degrees+minutes?
As you can tell, I need some help with this because I am getting nowhere.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Good to hear that you made it through.
Happy mapping and with kind regards, Andreas.
Yes, it was the metric field!! Thank you again!