I’ve been trying to get Flux to connect in Grafana. I had Grafana v6.7.2, InfluxDB 1.7.10 and
I couldn’t get it to work, even with ‘telegraf/autogen’ as Default bucket, as suggested in InfluxDB Error: Internal Server Error with flux data source on Grafana
I was getting the error
Data source connected, but has no data. Verify the “bucket” field and make sure the bucket has data.
I tried other existing (I think) buckets, but nothing worked.
In the meantime, I could successfully run in CLI
influx -type=flux -username -password -execute ‘from(bucket:“telegraf”) |> range(start:-5m) |> filter(fn:® => r._measurement == “cpu”)’
Then I thought, maybe there is a fix, let me update the packages. And now I’m running InfluxDB 1.8.0 and the same Flux command now returns
Error: 404 page not found
: 404 Not Found
What would be the simplest command to check connectivity? buckets()?
influx -type=flux -username -password -execute ‘buckets()’
Is there a command to query influxdb for flux enabled?
I think Flux is still enabled in my system after the update. I chose to keep the existing .conf.
$ cat /etc/influxdb/influxdb.conf | grep flux-enabled
flux-enabled = true