Flux standard library

The Flux standard library includes built-in functions and importable packages that retrieve, transform, process, and output data.

Built-in functions

Built-in functions provide a foundation for working with data using Flux. They do not require an import statement and are usable without any extra setup.

CSV package

The Flux CSV package provides functions for working with data in annotated CSV format. Import the csv package.

Date package

The Flux date package provides date and time constants and functions. Import the date package.

Experimental package

The Flux Experimental package includes experimental functions that perform various tasks. Experimental functions are subject to change at any time and are not recommended for production use.

HTTP package

The Flux HTTP package provides functions for transferring data using the HTTP protocol. Import the http package.

InfluxDB Monitor package

The Flux Monitor package provides tools for monitoring and alerting with InfluxDB. Import the influxdata/influxdb/monitor package.

InfluxDB package

The Flux InfluxDB package provides functions for analyzing InfluxDB metadata. Import the influxdata/influxdb package.

InfluxDB schema package

The Flux InfluxDB schema package provides functions for exploring your InfluxDB data schema. Import the influxdata/influxdb/schema package.

InfluxDB Secrets package

The Flux InfluxDB Secrets package provides functions for working with sensitive secrets managed by InfluxDB. Import the influxdata/influxdb/secrets package.

InfluxDB Tasks package

The Flux InfluxDB Tasks package provides options and functions for working with InfluxDB tasks. Import the influxdata/influxdb/tasks package.

InfluxDB v1 package

The Flux InfluxDB v1 package provides functions for managing data from an InfluxDB v1.x database or structured using the InfluxDB v1 data structure. Import the influxdata/influxdb/v1 package.

JSON package

The Flux JSON package provides functions for working with JSON. Import the json package.

Math package

The Flux math package provides basic constants and mathematical functions. Import the math package.

PagerDuty package

The Flux PagerDuty package provides functions for sending data to PagerDuty. Import the pagerduty package.

Profiler package

The Flux Profiler package provides performance profiling tools for Flux queries and operations. Import the profiler package.

Pushbullet package

The Flux Pushbullet package provides functions for sending data to Pushbullet. Import the pushbullet package.

Regular expressions package

The Flux regular expressions package includes functions that provide enhanced regular expression functionality. Import the regexp package.

Runtime package

The Flux runtime package includes functions that provide information about the current Flux runtime. Import the runtime package.

Slack package

The Flux Slack package provides functions for sending data to Slack. Import the slack package.

SQL package

The Flux SQL package provides tools for working with data in SQL databases such as MySQL, PostgreSQL, Snowflake, SQLite, Microsoft SQL Server, Amazon Athena, and Google BigQuery. Import the sql package.

Strings package

The Flux strings package provides functions to manipulate UTF-8 encoded strings. Import the strings package.

System package

The Flux system package provides functions for reading values from the system. Import the system package.

Testing package

The Flux testing package provides functions that test piped-forward data in specific ways. Import the testing package.

User-contributed functions

User-contributed packages and functions are contributed and maintained by members of the InfluxDB and Flux communities.

Complete list of Flux functions

View the full library of documented Flux functions.

flux functions package