Flux, the new InfluxData Data Scripting Language (formerly IFQL), super-charges queries both for analytics and data science. Matt will give a quick overview of the language features as well as the moving parts for a working deployment. Grafana is an open source dashboard solution that shares Flux’s passion for analytics and data science. For that reason, they are very excited to showcase the new Flux support within Grafana, and a couple of common analytics use cases to get the most out of your data.
In this talk, Matt Toback from Grafana Labs will share the latest updates they have made with their Flux builder in Grafana.
2. TL;DR
● Flux is powerful
● You can start playing with Flux in Grafana today
○ Flux support in Grafana is available via a new datasource
plugin
● For now, no automated way to migrate dashboards
○ Transpiler for Influx queries is being worked on
○ You can migrate your dashboards and panels manually
18. Get started: Flux
● Run latest influxd (nightly)
○ https://portal.influxdata.com/downloads
○ influxd config > config.toml # enable ifql
influxd -config config.toml
● Run nightly build of fluxd
○ https://s3.amazonaws.com/dl.influxdata.com/flux/nightlies/fluxd_nightly_macOS_amd64.tar.gz
○ https://s3.amazonaws.com/dl.influxdata.com/flux/nightlies/fluxd_nightly_linux_amd64.tar.gz
○ Generate config and start like done above
● Generate data
○ brew install telegraf
telegraf
19. Get started: Grafana datasource
● Get Grafana nightly or check out master
○ Clone, build, and run from Github; or use a docker image:
grafana/grafana-dev:master-25e1d72
○ Support for the plugin will be in v5.2
● Install Flux datasource plugin
○ https://github.com/grafana/influxdb-flux-datasource
○ Clone into data/plugins
○ Restart Grafana
● Add datasource Flux
● Add dashboard
● Add panel