I am using the latest Grafana version with influxDB1.8 as a data source and I am trying to do a very simple thing: get the max temperature since the beginning of the day. The measurement that I am using is extremely simple as it contains only one field (temperature)
I type the following flux query in Grafana but it doesn’t work (“NO DATA”) and I can’t figure out why.
That might be the problem. I have installed influxDB with Docker. I only have access to the CLI and it seems that only InfluxQL commands are accepted. I don’t know how to test Flux commands.
Yes, Grafana is on the same docker.
I access InfluxDB CLI through portainer, by clicking on the > icon. http://localhost:8086 doesn’t allow to access influxDB, which is the way it should be if I understand well.
Thanks much for your help. As you might understand I am not an expert…
My raspberry is on 192.168.1.58
My Docker-compose file (influxDB portion) is as follows:
Thanks for your help.
Here is the complete docker-compose file. It seems that when InfluxDB is installed with docker, the UI is InfluxQL only, even if Flux is enabled. When Flux is enabled, some (most ?) Flux commands work in Grafana but not today().
So use chronograf (or like I used in the past telegraf agent to collect data) or search for some tutorial which explains in more detail as how to use Grafana/InfluxDBv1 with any other tools as a whole stack correctly with more detailed configuration settings.
Yes, you can use InfluxDB ver2 but keep in mind that if you have previous data which was on ver 1 then you need to ask their support as how to migrate it. Because v1 save it in a database while v2 use the concept of Buckets (which is also v.new for me).
If there is no data then feel free to play around with InfluxDB v2
In order to manage my docker containers, I am using a utility called IOTstack from from Graham Garner (not completely sure about the name) which is very convenient for me. InfluxDB2 container is included and there is