What is Flux?
Flux lang is a functional data scripting language designed for querying, processing, writing, analyzing, and acting on data from InfluxDB and many other sources like SQL Databases (Big Query, PostgreSQL, MS SQL Server), annotated CSVs, JSON, and Bigtable.
The purpose of Flux
“Flux is much more flexible because it is not just a query language... The ability to combine data from different sources is great.”
Dr. Angelo Fausti, Software Engineer, Vera C. Rubin Observatory
Why use Flux?
Flux lang is easy to learn with excellent readability making it comfortable to be productive. It has a command line interface and a web-based UI for point-and-click script building. As Flux is a composable language, developers can chain together functions or build custom functions that work specifically for bespoke applications.
In addition, since Flux queries are code, they can be tested and checked into source control systems, be tested in isolation, or for complex queries, be built from separately tested sub-components. Finally, Flux allows developers to work in their preferred method.
Multiple data sources
Data from anywhere
InfluxDB supports querying, joining, and transforming time series, geo location and data from your SQL data sources to help you gain the insights you need in your applications.
Intro to FluxWatch this video introducing the Flux data structure. Watch now
Joins in FluxLearn how to use the Join function in Flux and when to use Joins as opposed to Pivots. Watch now
Pivots in FluxWatch this video on how to Pivot data with Flux. Watch now
Optimizing Flux QueriesWatch this video on how to Pivot data with Flux. Watch now
Flux Task OffsetsUse offsets to know when a Flux task runs so you can account for late arriving data. Watch now
VS Code Plugin
Write and run Flux scripts natively in VS CodeLearn more
Flux syntax basics
This guide walks through how Flux handles a few simple expressions.Learn more
Work with Flux data types
A Flux data type defines the set of possible values and operations.Learn more